Fix Errors
#4

You forgot the lenght. It's:
pawn Код:
format(string, sizeof(string), "Admin message from %s: %s", GetPlayerNameEx(playerid), message);
// Do the rest like that!
Yes, you want to check if a player is admin. You need to store the player's level somewhere. If you do, then check if his level is greater or equal to a number, then that player is admin. Otherwise, he is not.
Reply


Messages In This Thread
Fix Errors - by Drago987 - 14.09.2013, 16:50
Re: Fix Errors - by Konstantinos - 14.09.2013, 16:56
Re: Fix Errors - by Drago987 - 14.09.2013, 17:11
Re: Fix Errors - by Konstantinos - 14.09.2013, 17:15
Re: Fix Errors - by Drago987 - 14.09.2013, 17:29
Re: Fix Errors - by Drago987 - 14.09.2013, 17:42
Re: Fix Errors - by Drago987 - 14.09.2013, 18:01
Re: Fix Errors - by Konstantinos - 14.09.2013, 18:05
Re: Fix Errors - by Drago987 - 14.09.2013, 18:17
Re: Fix Errors - by Konstantinos - 14.09.2013, 18:56

Forum Jump:


Users browsing this thread: 4 Guest(s)