Teleport help, compile error
#1

ERROR CODE
Код:
C:\Program Files\Rockstar Games\GTA United\gtau-server.win32\gamemodes\penvc.pwn(6707) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA United\gtau-server.win32\gamemodes\penvc.pwn(6762) : warning 204: symbol is assigned a value that is never used: "LCVCAIR"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
In the top of my script
Код:
new VCLCAIR;
new LCVCAIR;
In OnGameModeInit:

Код:
	VCLCAIR = AddStaticPickup(6946, 2, 775.2029,-2192.7610,9.3248);
	LCVCAIR = AddStaticPickup(6946, 2, -2119.9409,1199.6786,11.2917);
In OnPlayerPickUpPickup:
public OnPlayerPickUpPickup(playerid,pickupid)
Код:
 if(pickupid == VCLCAIR)
	{
	GameTextForPlayer(playerid,"~g~Your Plane has arrived at LC Airport",5000,3);
	SetPlayerPos(playerid,-2117.5942,1199.3430,11.2992);
	SetPlayerInterior(playerid,0);
	}
	if(pickupid == LCVCAIR)
	{
	GameTextForPlayer(playerid,"~g~Your Plane has arrived at VC Airport",5000,3);
	SetPlayerPos(playerid,777.2658,-2190.5876,9.1532);
	SetPlayerInterior(playerid,0);
	}
Reply
#2

Could you exacly give me line 6707, please?
Reply
#3

if(pickupid == LCVCAIR)
Reply
#4

Use https://sampwiki.blast.hk/wiki/CreatePickup, AddStaticPickup doesn't return the id
Reply
#5

Have tried with Createpickup indted of addstaticpickup -.-
and still the same

Works now i changed "if" to "else if" on the second teleport and now it works !
Ty for answering
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)