28.11.2012, 11:51
When I type a command /truckduty and a half minutes talking to me, or do not show the route, or we do not find a route, or show me a single business(LATC)
And when the type command throw that command does not exist
What's the problem?
And when the type command throw that command does not exist
What's the problem?
Код:
if(strcmp(cmd, "/truckduty", true) == 0) { new timer; //timer = random(900000)+300000; timer = random(20000)+10000; if(PlayerInfo[playerid][pPosao] != 5) return NisiOvlasten(playerid); PlayerInfo[playerid][pTruckDuty] = 1; SetTimerEx("TruckNews", timer, false, "i", playerid); SCM(playerid, COLOR_WHITE,"Prijavljen si na burzu slodobnih vozaca. Uskoro ocekujte odgovor..."); }
Код:
public TruckNews(playerid) { new truckodgovor; new playername[MAX_PLAYER_NAME]; new string[256]; new imefirme[20]; truckodgovor=random(3)+0; if(truckodgovor == 1) { imefirme = "LAGC(LA i okolina)"; } else if(truckodgovor == 2) { imefirme = "LATC(LA)"; } else if(truckodgovor == 3) { imefirme = "LAGC(California)"; } if(truckodgovor == 0) { GetPlayerName(playerid, playername, sizeof(playername)); format(string, sizeof(string), "SMS: Nazalost gospodine %s, za Vas nismo nasli rutu. Molimo pokusajte ponovno. Salje: Burza za kamiondzije(Unknow)",playername); SendClientMessage(playerid, COLOR_YELLOW, string); } if(truckodgovor == 1 || truckodgovor == 2 || truckodgovor == 3) { format(string, sizeof(string), "SMS: Vi ste jedan od sretnika! Za Vas smo pronasli rutu. Vozite za: %s. Molimo odlucite o ponudi. Salje: Burza za kamiondzije(Unknow)", imefirme); SendClientMessage(playerid, COLOR_YELLOW, string); SPD(playerid, DIALOG_ACCEPTTRUCK, DIALOG_STYLE_LIST,"Odlucite...","Prihvacam\nOdbijam","Potvrdi","Odustani"); } return 1; }