21.02.2013, 19:19
That's my code ( borrowed some things from other script )
and this is the error
so, what's wrong?
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?