Attached to Vehicle
#1

Code:
	if(strcmp("/sam", cmdtext, true, 10) == 0)
	{
	    if(PlayerInfo[playerid][pTeam] == 2)
	    {
	    	AttachObjectToVehicle(SAM, GetPlayerVehicleID(playerid), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
		}
		return 1;
	}

	if(strcmp("/tower", cmdtext, true, 10) == 0)
	{
	    if(PlayerInfo[playerid][pTeam] == 2)
	    {
	    	AttachObjectToVehicle(Tower, GetPlayerVehicleID(playerid), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
		}
		return 1;
	}
Ive got those errors & warnings:

Code:
C:\Documents and Settings\Corne\Bureaublad\Server0.3c\gamemodes\ZAF3.pwn(839) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Corne\Bureaublad\Server0.3c\gamemodes\ZAF3.pwn(848) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Corne\Bureaublad\Server0.3c\gamemodes\ZAF3.pwn(380) : warning 204: symbol is assigned a value that is never used: "SAM"
C:\Documents and Settings\Corne\Bureaublad\Server0.3c\gamemodes\ZAF3.pwn(381) : warning 204: symbol is assigned a value that is never used: "Tower"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Can anyone help me?
Reply
#2

use the includes of the 0.3c pawn, and the IDS of the objects, or define SAM and Tower as the objects ids
Reply
#3

Ive got now:
Code:
C:\Documents and Settings\Corne\Bureaublad\Server0.3c\gamemodes\ZAF3.pwn(836) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Documents and Settings\Corne\Bureaublad\Server0.3c\gamemodes\ZAF3.pwn(845) : error 017: undefined symbol "AttachObjectToVehicle"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
I have 0.3c includes & pawno.
Reply
#4

did u open the pawno from the Samp 0.3c folder
Reply
#5

Yes, i did
Reply
#6

i think no. cause with AttachObjectToVehicle i've no problems. try download the sv again and replace the includes
Reply
#7

I alreadly did so much times ;l

Script i have now:
Code:
	if(strcmp("/sam", cmdtext, true, 10) == 0)
	{
	    if(PlayerInfo[playerid][pTeam] == 2)
	    {
	    	AttachObjectToVehicle(18848, GetPlayerVehicleID(playerid), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
		}
		return 1;
	}

	if(strcmp("/tower", cmdtext, true, 10) == 0)
	{
	    if(PlayerInfo[playerid][pTeam] == 2)
	    {
	    	AttachObjectToVehicle(3279, GetPlayerVehicleID(playerid), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
		}
		return 1;
	}
Reply
#8

i'm sure that u 're not using the correct pawn includes.
Reply
#9

Omg, im not crazy -.- I can do it 100 times again in same folder, re-download includes but doesnt work -.-
Reply
#10

I also have the same problem. I've verified everything and yes I am using the correct pawn includes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)