SA-MP Forums Archive
problem. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: problem. (/showthread.php?tid=501018)



problem. - GShock - 16.03.2014

if(PlayerInfo[playerid][AdminLevel] >= 1)
{
new str[128];
format(str, sizeof(str), "%s: {89cff0}%s", GetName(playerid), text[1]);
}
This code wont work to give admins a special colour on their chat 'text'. Can someone tell what went wrong?


Re: problem. - MP2 - 16.03.2014

You never send it..

Also you should learn to indent.

Also 144 is the max string in chat, not 128.

Returning 0 under OnPlayerText will stop the original message from being sent.


Re: problem. - GShock - 16.03.2014

Thanks will get back to you on this.
N.O.T :Also, why are my threads getting deleted? -_-