SA-MP Forums Archive
Help with cmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with cmd (/showthread.php?tid=550548)



Help with cmd - Yapo - 13.12.2014

error 010: invalid function or declaration


Код:
cmd:newbme(playerid, params[])
if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pUnderCover] >= 1) {
	    if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
	        return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
new string[128],hp,armor;
SetPlayerSkin(playerid, 299);
SetPlayerHealth(playerid, 29);
SetPlayerArmourEx(playerid, 0);
SetPlayerScore(playerid,1);
ResetPlayerWeaponsEx(playerid);
}
return 1;
}