[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
#2

pawn Код:
format(string, sizeof(string), "%s %d: %s", name, playerid, text);
and remove return 0; both
Reply
#3

Quote:
Originally Posted by Jefff
Посмотреть сообщение
pawn Код:
format(string, sizeof(string), "%s %d: %s", name, playerid, text);
and remove return 0; both
thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)