4 errors in one line ,need help
#1

i get this ,when im trying to make a command for army stats....

pawn Код:
C:\Users\Hacker\Desktop\my script\gamemodes\test.pwn(1359) : error 012: invalid function call, not a valid address
C:\Users\Hacker\Desktop\my script\gamemodes\test.pwn(1359) : warning 215: expression has no effect
C:\Users\Hacker\Desktop\my script\gamemodes\test.pwn(1359) : error 001: expected token: ";", but found ")"
C:\Users\Hacker\Desktop\my script\gamemodes\test.pwn(1359) : error 029: invalid expression, assumed zero
C:\Users\Hacker\Desktop\my script\gamemodes\test.pwn(1359) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
here is the command .....

pawn Код:
cmd(army, playerid, params[])
{
    if(pInfo[playerid][Adminlevel] >= 5)
    {
        new string[200], pName[MAX_PLAYER_NAME];
        if(sscanf(params, "u", playerid))
            return SendClientMessage(playerid, COLOR_RED, "Usage: /army (player <id>)");
        if(!IsPlayerConnected(playerid))
            return SendClientMessage(playerid, COLOR_RED, "Usage: /army (player <id>)");
        if(GetPVarInt(playerid, "ArmyPermission") == 1337)
            return SendClientMessage(playerid, COLOR_RED, "That player already have army stats!! .");
        format(string, 120, "[ARMY NEWS] Server Admin %s has made %s a member of the Army!", pInfo(playerid), pInfo([playerid))
        SendClientMessageToAll(COLOR_PURPLE, string);
        SendAdminMessage(string);
        CNR_PrintString(string);
        SendClientMessage(playerid, COLOR_PURPLE, "You are now able to play as Los Santos Army. Be sure to stick with rules or your army stats will be taken.");
        SetPVarInt(playerid, "ArmyPermission", 1337);
    }
    return 1;
}
Reply


Messages In This Thread
4 errors in one line ,need help - by iThePunisher - 22.12.2013, 06:20
Re: 4 errors in one line ,need help - by TahaAsif12 - 22.12.2013, 06:28
Re: 4 errors in one line ,need help - by Sublime - 22.12.2013, 06:29
Re: 4 errors in one line ,need help - by iZN - 22.12.2013, 06:31
Re: 4 errors in one line ,need help - by iThePunisher - 22.12.2013, 06:43
Re: 4 errors in one line ,need help - by iThePunisher - 22.12.2013, 07:09
Re: 4 errors in one line ,need help - by erminpr0 - 22.12.2013, 13:21

Forum Jump:


Users browsing this thread: 1 Guest(s)