16.11.2011, 14:35
Hy Guys i have made this command CODE:
And this errors show to me CODE:
What is problem?
Код:
if (strcmp(cmd, "/unban", true)==0) { if((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=1337) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_ORANGE, "Koristite: {FFFFFF}/unban [Ime Korisnika]"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(giveplayer)); SendClientMessage(playerid, COLOR_WHITE, " "); format(string, 256, "___________________________________________", tmp); SendClientMessage(playerid,COLOR_WHITE,string,1); format(string, 256, "[Unban] - %s je uspjesno unbanan!", tmp); SendClientMessage(playerid,COLOR_YELLOW,string,1); SendClientMessage(playerid, COLOR_WHITE, "___________________________________________"); format(string, 256, " |A| %s je uspjesno unbanao igraca %s", sendername, tmp); printf(string); format(string,sizeof(string),"%s.ini",tmp); fremove(string); SendRconCommand(string); SendRconCommand("reloadbans"); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); } return 1; }
Код:
C:.../RLRP.pwn(792) : error 010: invalid function or declaration C:.../RLRP.pwn(794) : error 010: invalid function or declaration C:.../RLRP.pwn(797) : error 010: invalid function or declaration C:.../RLRP.pwn(800) : error 010: invalid function or declaration C:.../RLRP.pwn(819) : error 010: invalid function or declaration