30.01.2010, 10:55
erm the string don't appear... tghou the function is correct because i use it in other commands and they work fine... and for example when the player don't type the " playerid" after the command like : /promote 15 it say USAGE: /promote [playerid]
those if's works fine but if the server skips those if's it say unknown command....
Only this code don't work...
from all that command.... ( the important piece
)
when the server should work that code... instead it displays " SERVER: Unknown command . "
those if's works fine but if the server skips those if's it say unknown command....
Only this code don't work...
Код:
format(string, sizeof(string),"(PD Radio) Congratulations to %s , got promoted from %s to %s",PlayerInfo[giveplayerid][name],PoliceRank[PlayerInfo[playerid][policerank]-1][0],PoliceRank[PlayerInfo[playerid][policerank]][0]); // From here onwards don't work. PlayerInfo[giveplayerid][policerank] += 1; SavePlayer(giveplayerid); SendMessageToPolice(COLOR_LIGHTBLUE,string); return 1;
![Sad](images/smilies/sad.gif)
when the server should work that code... instead it displays " SERVER: Unknown command . "