A couple of errors
#1

Quote:

C:\Users\James\Desktop\SAMP\gamemodes\roleplay.pwn (436) : error 012: invalid function call, not a valid address
C:\Users\James\Desktop\SAMP\gamemodes\roleplay.pwn (436) : error 001: expected token: ";", but found ")"
C:\Users\James\Desktop\SAMP\gamemodes\roleplay.pwn (436) : error 029: invalid expression, assumed zero
C:\Users\James\Desktop\SAMP\gamemodes\roleplay.pwn (436) : fatal error 107: too many error messages on one line

And here's the code:
Код:
public OnVehicleDeath(vehicleid, killerid)
{
	if(GetCreatorID(vehicleid)!=0)
	{
		new create = GetCreatorID(vehicleid);
		DestroyVehicle(vehicleid);
		new CAR = CreateVehicle(VehicleSystem[create][model],VehicleSystem[create][x],VehicleSystem[create][y],VehicleSystem[create][z],VehicleSystem[create][a],VehicleSystem[create][Colour1],VehicleSystem[create][Colour2],600000);
		Tune(CAR);
	}
	return 1;
}
Код:
if(GetCreatorID(vehicleid)!=0)
^ That's line 436
Reply
#2

try this one

Код:
public OnVehicleDeath(vehicleid, killerid)
{
	if(GetCreatorID(vehicleid) != 0)
	{
		new create = GetCreatorID(vehicleid);
		DestroyVehicle(vehicleid);
		new CAR = CreateVehicle(VehicleSystem[create][model],VehicleSystem[create][x],VehicleSystem[create][y],VehicleSystem[create][z],VehicleSystem[create][a],VehicleSystem[create][Colour1],VehicleSystem[create][Colour2],600000);
		Tune(CAR);
	}
	return 1;
}
Reply
#3

Try with this
if(GetCreatorID(vehicleid)==0)
Reply
#4

Unforseen, that doesn't work.

Quote:
Originally Posted by ikarus
Try with this
if(GetCreatorID(vehicleid)==0)
That's not what I want to do.
Reply
#5

then give me the define's
cuz i cant fix it without them
Reply
#6

Which defines? You can have my GetVehicleID method if you want.
Reply
#7

i mean the GetCreatorID stock or else...
Reply
#8

It doesn't matter. The error is in the code I gave you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)