script help (error)
#2

pawn Код:
CMD:setscore(playerid, params[])
{
    new targetid, amount;
    if(PlayerInfo[playerid][pAdmin] > 3)
    {
        if(sscanf(params,"ii", targetid, amount)) return SendClientMessage(playerid, 0xFFFFFFF,"error.Correct usage: /setscore [PlayerID] [Amount]");
        else
        {
            if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, 0xFFFFFFF,"You need an admin level of 3+ to use this command");
            if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server!");
            SetPlayerScore(targetid, amount);
        }      
   }
   return 1;
}
Return position wasn't right.

Advice: Use [pawn][/ pawn] when you past a pawn code
Reply


Messages In This Thread
script help (error) - by Marcus181 - 15.05.2013, 02:16
Re: script help (error) - by DeMoX - 15.05.2013, 02:44

Forum Jump:


Users browsing this thread: 1 Guest(s)