Quote:
Originally Posted by ghzspark
That's my code ( borrowed some things from other script )
pawn Код:
CMD:jetpack(playerid, params[]) { new targetidname[MAX_PLAYER_NAME],targetid; new string[256]; if(PlayerInfo[playerid][pAdmin] >= 1) { if(IsPlayerConnected(playerid)) { if(!sscanf(params,"u",targetid)) { GetPlayerName(targetid, targetidname, sizeof(targetidname)); format(string,sizeof(string),"Un administrator i-a dat un Jetpack lui %s", targetidname); SendClientMessageToAll(-1, string); SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK); } else return SendClientMessage(playerid,1,"Utilizare: /jetpack (ID/Name);"); } } else return SendClientMessage(playerid, "Trebuie sa fi admin pentru a folosi aceasta comanda."); return 1; }
and this is the error
pawn Код:
C:\Users\Mihai\Desktop\samp\Romanian Project Roleplay\gamemodes\ZRP.pwn(23776) : error 035: argument type mismatch (argument 2) C:\Users\Mihai\Desktop\samp\Romanian Project Roleplay\gamemodes\ZRP.pwn(23777) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
so, what's wrong?
|
Post both of the lines which contain the errors