19.09.2015, 16:31
If I am in the game and I buy a car, and after use /veh displays the message: "You not a vehicle!".
But if I restart the server, command /veh works!
But if I restart the server, command /veh works!
Код HTML:
CMD:veh(playerid, params []) { new bool:found = false, msg[256], lst[19]; for(new i = 0; i < sizeof(Veh); i++) { if(Veh[i][Owner] == pInfo[playerid][pID]) { found = true; format(msg, sizeof(msg), "%s\n%s\t%s\t%s", msg, VehicleNames[GetVehicleModel(Veh[i][ServerID])-400], lst, Veh[i][Plate]); } } if(found) { ShowPlayerDialog(playerid, DIALOG_VEH, DIALOG_STYLE_TABLIST_HEADERS, "My Vehicles", msg, "Select", "Cancel"); } else { SendClientMessage(playerid, COLOR_DARKGRAY, "You not a vehicle!"); } return 1; }