- 0
Ajutor
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Ice.Kold.Killa
imi da o eroare la o comanda si nu stiu cum sa o rezolv
http://www.imgz.ro/i/1382447908-sad.gif
[pawn] //--------------------------------------------------
if(strcmp(cmd, "/aod", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(AdminDuty[playerid] == 0)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string,sizeof(string),"Admin %s is now on Duty.",name,playerid);
SendClientMessageToAll(0x8E4D31FF,string);
AdminDuty[playerid] = 1;
new setname[16];
format(setname, sizeof(setname), "%s[AOD]",name);
if(!strlen(name[11]))
{
aodtag[playerid] = 1;
SetPlayerName(playerid,setname);
}
SetPlayerHealth(playerid,999);
SetPlayerArmour(playerid,31000000000);
}
else
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string,sizeof(string),"Admin %s is no longer on Duty.",name,playerid);
SendClientMessageToAll(0x756FEEFF,string);
AdminDuty[playerid] = 0;
new pname[16];
GetPlayerName(playerid,pname,16);
strdel(pname, strlen(pname)-5, strlen(pname));
if(aodtag[playerid] == 1)
{
aodtag[playerid] = 0;
SetPlayerName(playerid,pname);
}
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,000);
}
}
return 1;
}[/pawn]
Linia ii asta care imi da eroare
Chiar nu stiu ce este problema.
4 answers to this question
Recommended Posts