09.04.2015, 10:13
Quote:
Код:
CMD:carbreakin(playerid, params[]) { new Float: vX, Float: vY, Float: vZ ; for(new i = 0; i != MAX_VEHICLES; i++) { if (!IsValidVehicle(vehicleid)) continue; GetVehiclePos(i, vX, vY, vZ); if(IsPlayerInRangeOfPoint(playerid, 10.0, vX, vY, vZ)) { SendClientMessage(playerid, COLOR_LIGHTRED, "You're near a car and the breakin bit needs adding"); break; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "You're not near to car!"); } } return 1; } |
Код:
C:\Users\Nathan\Desktop\Downtown Roleplay\gamemodes\core.pwn(2108) : error 017: undefined symbol "IsValidVehicle" C:\Users\Nathan\Desktop\Downtown Roleplay\gamemodes\core.pwn(2108) : error 017: undefined symbol "vehicleid" C:\Users\Nathan\Desktop\Downtown Roleplay\gamemodes\core.pwn(2108) : error 029: invalid expression, assumed zero C:\Users\Nathan\Desktop\Downtown Roleplay\gamemodes\core.pwn(2108) : fatal error 107: too many error messages on one line