Jetpack Command
#6

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?
Reply


Messages In This Thread
Jetpack Command - by ghzspark - 21.02.2013, 18:52
Re: Jetpack Command - by ZeroCools - 21.02.2013, 19:06
Re: Jetpack Command - by Luis- - 21.02.2013, 19:08
Re: Jetpack Command - by Mark_Samp - 21.02.2013, 19:12
Re: Jetpack Command - by Goldino - 21.02.2013, 19:18
Re: Jetpack Command - by ghzspark - 21.02.2013, 19:19
Re: Jetpack Command - by Goldino - 21.02.2013, 19:21
Re: Jetpack Command - by ghzspark - 21.02.2013, 19:22
Re: Jetpack Command - by benel1 - 21.02.2013, 19:42
Re: Jetpack Command - by ghzspark - 22.02.2013, 06:55

Forum Jump:


Users browsing this thread: 5 Guest(s)