18.02.2010, 01:21
heres the command i need help with when i use it all it does in game is show nothing. like it working but there is no text
Код:
if(strcmp(cmd, "/10-49", true) == 0) { if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { new String[256]; if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** LAFD Dispatch: Unit: #%d is Enroute to the scene. **", sendername, PlayerInfo[playerid][pBadgeNumber]); } else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** LAFD Dispatch: Engine: #%d is Enroute to the scene. **", sendername, PlayerInfo[playerid][pBadgeNumber]); } else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** LAFD Dispatch: Engine: #%d is Enroute to the scene. **", sendername, PlayerInfo[playerid][pBadgeNumber]); } else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** LAFD Dispatch: Engine: #%d is Enroute to the scene. **", sendername, PlayerInfo[playerid][pBadgeNumber]); } else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** LAFD Dispatch: EMS: #%d is Enroute to the scene. **", sendername, PlayerInfo[playerid][pBadgeNumber]); } else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** LAFD Dispatch: EMS: #%d is Enroute to the scene. **", sendername, PlayerInfo[playerid][pBadgeNumber]); } SendRadioMessage(1, COLOR_DBLUE, String); SendRadioMessage(4, COLOR_RED, String); } return 1; }