Ayuda. Error 017
#1

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

Ese es el error, ahora pondrй la lнnea.
Код:
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;
}
Alguien podrнa ayudarme a resolver este problema?
Reply
#2

Te falta la funcion GetVehicle2DZone,
de donde mismo sacaste ese comando busca la funcion GetVehicle2DZone
Reply
#3

No tienes definida la funciуn 'GetVehicle2DZone', bъscala en el '.pwn' de donde lo sacaste.
Reply
#4

https://lv-rp.******code.com/svn/tru...de/a_zones.inc
Reply
#5

Gracias chicos, ya he arreglado el problema.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)