Započeo FlasH
•16. Mar. 2012.• ZaključanoPomoc[Error]
850
pregleda
13
postova
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
915
Postovi:
70
Teme:
Pridružio se:Dec. 2011
16. Mar. 2012.
Dio skripte; Ovo je Filterskripta
Opis: Error
KODOVI:
Opis: Error
KODOVI:
\TextDrawEditor1.0.pwn(136) : error 017: undefined symbol "pAdmin"
\TextDrawEditor1.0.pwn(157) : warning 209: function "OnPlayerCommandText" should return a valueCrime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
762
Postovi:
20
Teme:
Pridružio se:Sep. 2011
16. Mar. 2012.
u filterscripti ti nije definisan admin level kao u gamemodu, nadji gde pise padmin i obrisi ceo red... ili zameni
sa
i to ce ti moci samo rcon admini koristiti...
a sto se tice warninga na onplayercommandtext ispred zadnje } dodaj
PlayerInfo
sa
IsPlayerAdmin(playerid)
i to ce ti moci samo rcon admini koristiti...
a sto se tice warninga na onplayercommandtext ispred zadnje } dodaj
return 0;Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
915
Postovi:
70
Teme:
Pridružio se:Dec. 2011
16. Mar. 2012.
Eo ti cijela komanda pa POPRAVI KAKO TREBA eo ti
public OnPlayerCommandText(playerid, cmdtext[])
if(!strcmp("/text", cmdtext))
{
if(IsPlayerAdmin(playerid) >= 1339 || IsPlayerAdmin(playerid))
if(pData) return SendClientMessage(playerid, MSG_COLOR, " Finish the current edition before using /text!");
else if(!strlen(CurrentProject) || !strcmp(CurrentProject, " "))
{
if(IsPlayerMinID(playerid))
{
ShowTextDrawDialog(playerid, 0);
pData = true;
}
else
SendClientMessage(playerid, MSG_COLOR, "Just the smaller player ID can manage projects. Ask him to open one.");
return 1;
}
else
{
ShowTextDrawDialog(playerid, 4, 0);
pData = true;
return 1;
}
}Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
762
Postovi:
20
Teme:
Pridružio se:Sep. 2011
16. Mar. 2012.
evo valjda ce ti valjati ..
pokusaj srediti kod ponekad 😄
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/text", cmdtext))
{
if(IsPlayerAdmin(playerid))
{
if(pData) return SendClientMessage(playerid, MSG_COLOR, " Finish the current edition before using /text!");
else if(!strlen(CurrentProject) || !strcmp(CurrentProject, " "))
{
if(IsPlayerMinID(playerid))
{
ShowTextDrawDialog(playerid, 0);
pData = true;
}
else
{
SendClientMessage(playerid, MSG_COLOR, "Just the smaller player ID can manage projects. Ask him to open one.");
return 1;
}
}
}
else
{
ShowTextDrawDialog(playerid, 4, 0);
pData = true;
return 1;
}
}
return 0;
}
pokusaj srediti kod ponekad 😄
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
762
Postovi:
20
Teme:
Pridružio se:Sep. 2011
16. Mar. 2012.
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/text", cmdtext))
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, MSG_COLOR, ": {FFFFFF}Niste admin!");
if(IsPlayerAdmin(playerid))
{
if(pData) return SendClientMessage(playerid, MSG_COLOR, " Finish the current edition before using /text!");
else if(!strlen(CurrentProject) || !strcmp(CurrentProject, " "))
{
if(IsPlayerMinID(playerid))
{
ShowTextDrawDialog(playerid, 0);
pData = true;
}
else
{
SendClientMessage(playerid, MSG_COLOR, "Just the smaller player ID can manage projects. Ask him to open one.");
return 1;
}
}
}
else
{
ShowTextDrawDialog(playerid, 4, 0);
pData = true;
return 1;
}
}
return 0;
}eto tako
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava