Quote:
Originally Posted by benel1
try this:
pawn Код:
CMD:jetpack(playerid, params[]) { new targetidname[MAX_PLAYER_NAME], targetid, string[148]; if(PlayerInfo[playerid][pAdmin] >= 1) { if(sscanf(params, "u", targetid)) return SendClientMessage(playerid,1,"Utilizare: /jetpack (ID/Name);"); GetPlayerName(targetid, targetidname, sizeof(targetidname)); format(string,sizeof(string),"Un administrator i-a dat un Jetpack lui %s", targetidname); SendClientMessageToAll(-1, string); SetPlayerSpecialAction(targetid, SPECIAL_ACTION_USEJETPACK); } else SendClientMessage(playerid, "Trebuie sa fi admin pentru a folosi aceasta comanda."); return true; }
|
still getting this
pawn Код:
C:\Users\Mihai\Desktop\samp\Romanian Project Roleplay\gamemodes\ZRP.pwn(23769) : error 035: argument type mismatch (argument 2)