error 001: expected token: "-string end-", but found "-identifier-"
#5

Quote:
Originally Posted by Wesley221
Посмотреть сообщение
Hm, can u post the whole command then?
PHP код:
CMD:og(playeridparams[])
{
    new 
gangstername[MAX_PLAYER_NAME],adminname[MAX_PLAYER_NAME];
    new 
gangsterlevelid;
    if(
PlayerInfo[playerid][pAdmin] >= 3)
    {
        if (
sscanf(params"ui"idgangsterlevel)) return SendClientMessage(playeridCOLOR_RED"USAGE: /set_glevel [id] [gangsterlevel]");
        if (
id == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_RED"System: Invalid ID");
        
GetPlayerName(idgangsternamesizeof(gangstername));
        
GetPlayerName(playeridadminnamesizeof(adminname));
        new 
str[128];
        
format(str,128,"System: %s [ID %d] has set %s [ID %d] gangsterlevel to %i%s",adminnameplayeridgangsternameidgangsterlevel,((gangsterlevel >= 100) ? "(GODFATHER)" "") );
        
SendClientMessageToAll(COLOR_YELLOW,str);
        return 
1;
    }
    else return 
SendClientMessage(playerid,COLOR_RED,"  You are not allowed to use this command!");

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)