05.01.2016, 01:51
Quote:
D:\gms\xdxd\gamemodes\RP.pwn(220 : error 017: undefined symbol "GetVehicle2DZone" D:\gms\xdxd\gamemodes\RP.pwn(220 : warning 202: number of arguments does not match definition D:\gms\xdxd\gamemodes\RP.pwn(222 : error 017: undefined symbol "GetVehicle2DZone" D:\gms\xdxd\gamemodes\RP.pwn(222 : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase |
Код:
CMD:vspawn(playerid, params[]) { new choice, vehicle; if(sscanf(params, "i", choice)) { SendClientMessage(playerid, -1, "USAGE: /vspawn [1-5]"); return cmd_vlist(playerid, params); } new vslot = choice-1, str[164], zone[60]; if(choice < 1 || choice > 5 ) return SendClientMessage(playerid, -1, "Valid slot numbers are 1-5."); if(PlayerInfo[playerid][pVehicle][vslot] == 0) return SendClientMessage(playerid, -1, "You don't have a vehicle in that slot."); if(PlayerInfo[playerid][pVehicleSpawned][vslot] == 1) return SendClientMessage(playerid, -1, "Tu ya has spawneado este vehнculo!."); vehicle = CreateVehicle(PlayerInfo[playerid][pVehicle][vslot], PlayerInfo[playerid][pVehiclePosX][vslot], PlayerInfo[playerid][pVehiclePosY][vslot], PlayerInfo[playerid][pVehiclePosZ][vslot], PlayerInfo[playerid][pVehicleRot][vslot], PlayerInfo[playerid][pVehicleCol1][vslot],PlayerInfo[playerid][pVehicleCol2][vslot], 0); GetVehicle2DZone(vehicle, zone, sizeof(zone)); format(str, sizeof(str), "You have spawned your vehicle at %s.", zone); PlayerInfo[playerid][pVehicleSpawned][vslot] = 1; PlayerInfo[playerid][pVehicleSpawnedID][vslot] = vehicle; SendClientMessage(playerid, COLOR_GRAD1, str); new plate[126]; format(plate, sizeof(plate), "LS%i", vehicle); SetVehicleNumberPlate(vehicle, plate); return 1; }