12.05.2012, 23:11
Hello..
I have a command, /service
But when someone types /service bus .. it does not sendclientmessage to the bus drivers..
Thats the code for the /service bus..
This does not manage to reach the bus drivers
Need anymore information, just leme know
I have a command, /service
But when someone types /service bus .. it does not sendclientmessage to the bus drivers..
pawn Код:
else if(strcmp(choice,"bus",true) == 0)
{
if(BusDrivers < 1)
{
SendClientMessageEx(playerid, COLOR_GREY, " There are no bus drivers at the moment, try again later!");
return 1;
}
if(TransportDuty[playerid] > 0)
{
SendClientMessageEx(playerid, COLOR_GREY, " You can't call for a bus now!");
return 1;
}
format(string, sizeof(string), "** %s is in need of a bus driver - use /accept bus to accept the call.", GetPlayerNameEx(playerid));
SendJobMessage(14, TEAM_AZTECAS_COLOR, string);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You have called for a bus driver, wait for a reply.");
BusCall = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
return 1;
}
This does not manage to reach the bus drivers
pawn Код:
format(string, sizeof(string), "** %s is in need of a bus driver - use /accept bus to accept the call.", GetPlayerNameEx(playerid));
Need anymore information, just leme know