/FAKECMD isnt working
#2

Код:
for(new i=0;i<GetMaxPlayers();i++)
should be

Код:
for(new i=0;i<=GetMaxPlayers();i++)
Код:
 format(string3,sizeof(string3),"A: %s [LEVEL %i] used the FAKECMD command.",PlayerName(playerid),GetPVarInt(playerid,"Admin"));
You don't need that inside the loop. Move it outside the loop. Why simply waste CPU calculating the same thing again and again?

As far as my knowledge goes, your code should work.

Add a printf just before calling OnPlayerCommandText and find out what are the contents of pID and command.
Reply


Messages In This Thread
/FAKECMD isnt working - by YoussefHammad - 04.09.2015, 19:37
Re: /FAKECMD isnt working - by Yashas - 05.09.2015, 07:28

Forum Jump:


Users browsing this thread: 1 Guest(s)