zcmd....
#1

Was just trying out zcmd and got stuck here :
pawn Код:
command(ipwn, playerid, params[])
{
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(PlayerInfo[playerid][pAdmin] == 10)
    {
        format(string,sizeof,(string),"%s PWNS!!!",sendername);
        SendClientMessageToAll(COLOR_BLUE,string);
    }
    else
    {
        SendClientMessage(playerid, COLOR_BLUE, "Fuck Off, this cmd is for anant only.");
    }
    return 1;
}
Код:
Current directory: D:\VERY IMPORTANT STUFF\SA-MP Scripts\EL-RP\gamemodes
el-rp.pwn(50587) : error 020: invalid symbol name ""
el-rp.pwn(50587) : warning 215: expression has no effect
el-rp.pwn(50587) : warning 215: expression has no effect
el-rp.pwn(50587) : warning 215: expression has no effect
el-rp.pwn(50587) : error 001: expected token: ";", but found ")"
el-rp.pwn(50587) : error 029: invalid expression, assumed zero
el-rp.pwn(50587) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
================ READY ================
Any help will be appreciated.
Reply
#2

Quote:

format(string,sizeof,(string),"%s PWNS!!!",sendername);

Change to:

pawn Код:
format( string, sizeof(string), "%s PWNS!!!", sendername );
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)