17.08.2014, 14:29
Thanks, what about this command,
Error:
Command:
Error:
Код:
(9204 -- 9223) : error 010: invalid function or declaration
Код:
CMD:getin(playerid, params[]) { new IsPlayerInEVehicle[MAX_PLAYERS]; new Seats[MAX_VEHICLES]; if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); for(new i=0; i < 1750; i++) { new Float:X,Float:Y,Float:Z; GetVehiclePos(i, X,Y,Z); new vehiclename[24]; //here if(!IsPlayerInRangeOfPoint(playerid, 7.0, X,Y,Z)) return SendClientMessage(playerid, COLOR_GREY, "You are not at the cityhall."); if(IsAnEnterableModel(i)) if(IsPlayerInEVehicle[playerid] == 9999 && !IsPlayerInAnyVehicle(playerid)) if(IsAnEnterableCar(i) && Seats[i] <= 5) { PutPlayerInVehicle(playerid, i, 4); Seats[i] ++; SendClientMessage(playerid, COLOR_GREY,"* You have Entered a Vehicle with /getin, Use /getout to get out or else YOU WILL CRASH!!"); return 1; } else if(IsAnEnterablePlane(i)) { PutPlayerInVehicle(playerid, i, 4); IsPlayerInEVehicle[playerid] = i; SendClientMessage(playerid, COLOR_GREY,"* You have Entered a Vehicle with /getin, Use /getout to get out or else YOU WILL CRASH!!"); } } } return 1; //to here }