09.10.2012, 21:07
Fiz meu sistema pedagio bбsico mas... ele nгo funciona.
porque quando eu chego lб sу funciona um e nгo funciona direito?
Код:
if(CPS_IsPlayerInCheckpoint(playerid, checkpedagio) && IsPlayerInAnyVehicle(playerid)) { format(string, sizeof(string), "Bem vindo ao pedagio, deseja passar?", nome(playerid)); ShowPlayerDialog(playerid, DIALOGID+17, DIALOG_STYLE_MSGBOX, "Pedagio", string, "Sim", "Nгo"); } if(CPS_IsPlayerInCheckpoint(playerid, checkpedagio2) && IsPlayerInAnyVehicle(playerid)) { format(string, sizeof(string), "Bem vindo ao pedagio, deseja passar?", nome(playerid)); ShowPlayerDialog(playerid, DIALOGID+18, DIALOG_STYLE_MSGBOX, "Pedagio", string, "Sim", "Nгo"); }
Код:
if(dialogid == DIALOGID+17) { if(response) { SetVehiclePos(vehicleid,50.4686,-1524.8268,5.0681); } else { SetVehiclePos(vehicleid,67.2928,-1527.2106,4.8696); } } if(dialogid == DIALOGID+18) { if(response) { SetVehiclePos(vehicleid,63.1642,-1540.7421,5.0588); } else { SetVehiclePos(vehicleid,52.5437,-1537.2518,5.1314); } } return 1; }