Quote:
Originally Posted by EduGTA
Es mejor un switch, como dijo Enzo.
EDIT:
Creo que a lo que Enzo se refiere es a algo asн:
pawn Код:
switch(GetPlayerVehicleID(playerid)) { case 0: SendClientMessage(playerid, -1, "Estбs en el vehнculo ID 0, que emociуn :D"); case 30: SendClientMessage(playerid, -1, "Eres el nъmero 30"); case 42: SendClientMessage(playerid, -1, "El significado de la vida es 42."); case X: { //Mis funciones } }
X serнa la ID del vehнculo.
|
Probй ambas soluciones y la que me convenciу fue la de hacerlo con switch

.
Gracias a todos!!



