[HELP]Problem syntax..
#1

Error:

Код:
syntax error in the expression, or invalid function call
Line:

Код:
format(string, sizeof(string), "%s: %s", name, playerid, text);
Part of script. it's in OnPlayerText

Код:
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
            {
                format(string, sizeof(string), "%s: %s", name, playerid, text);
                SendClientMessageToAll(GetPlayerColor(playerid), string);
                return 0;
            }
            return 0;
        }
    }
Reply


Messages In This Thread
[HELP]Problem syntax.. - by TheBluec0de - 08.06.2012, 23:19
Re: [HELP]Problem syntax.. - by Jefff - 08.06.2012, 23:30
Re: [HELP]Problem syntax.. - by TheBluec0de - 08.06.2012, 23:42

Forum Jump:


Users browsing this thread: 1 Guest(s)