• Welcome to Vice City Multiplayer.
 

OnPlayerText not recognizing ret 0?

Started by Ettans, January 19, 2010, 05:24:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ettans

Hi. Seems that the OnPlayerText doesn't recognize return 0, here's what I used:


if(cmdtext[0] == ';')
{
    for(new i = 0; i < 41; i++)
    {
        if(IsPlayerConnected(i) && GetPlayerTeam(i) == GetPlayerTeam(playerid))
        {
            newvar = FindPlayerIDFromString(tmp);
            format(tmp,sizeof(tmp),"[TEAM] %s: %s",gPlayers[newvar],cmdtext[1]);
            SendClientMessage(i,COLOR_GREEN,tmp);
        }
    }
    return 0;
}


Outputs (Wrong):
Quote
Ettans: ;message
[TEAM] Ettans: message

Whereas it should output:
Quote[TEAM] Ettans: message

Any idea what's wrong or is it VC-MP bug?

Boss

They just probably forgot to implement not showing the text in case the callback returns false.

Ettans