30.12.2014, 22:07
Tipo digitar /cheetah e spawnar um cheetah.... porem tem uma forma mais fбcil sem ser fazendo por ex: /cheetah, /infernus um por um
quem me ajudar fico grato ^^
quem me ajudar fico grato ^^
error 017: undefined symbol "CreatedVehicle" warning 215: expression has no effect error 001: expected token: ";", but found "]" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line
GiveVehicle(playerid,vehicleid) { if(!IsPlayerInAnyVehicle(playerid)) { new Float:x, Float:y, Float:z, Float:angle; if(CreateVehicle[playerid]) DestroyVehicle(CreateVehicle[playerid]); GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, angle); new veh = CreateVehicle(vehicleid, x, y, z, angle, -1, -1, -1); SetVehicleVirtualWorld(veh, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(veh, GetPlayerInterior(playerid)); PutPlayerInVehicle(playerid, veh, 0); CreateVehicle[playerid] = veh; return 1; } return 1; }