ocmd:givegun(playerid, params[])
{
if(!isPlayerAnAdmin(playerid,2000))return SendClientMessage(playerid,Braun,"Du bist kein Admin / Rang 2000.");
new waffe,munition,pID;
if(sscanf(params,"uii",waffe,munition))return SendClientMessage(playerid,Weiß,"Benutze /givegun [ID] [Waffe] [Munition]");
if(IsPlayerConnected(pID))
{
if(waffe<0||waffe>46)) ////////////////////////////////// Error 1
{
SendClientMessage(playerid,Rot,"Ungültige Waffen ID");
}
else /////////////////////////////////////////////////// Error 2
{
GivePlayerWeapon(pID,waffe,munition);
}
}
return 1;
}
Error:
.pwn(5007) : error 029: invalid expression, assumed zero
.pwn(5011) : error 029: invalid expression, assumed zero
wo ist da der fehler?