SA-MP Forums Archive
Need help with this error in my code - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with this error in my code (/showthread.php?tid=90968)



Need help with this error in my code - gablery - 11.08.2009

Where im defining what im trying to find

Код:
public IsAFactionCar(carInfo)
{
	if (CarInfo[cFaction] == 1)
		{
		return 1;
	}
	return 0;
}
What i need to define
Код:
if (IsAFactionCar(newcar))
		{
		  if(PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pLeader] == 3) { }
		  else { RemovePlayerFromVehicle(playerid); }
		}
Код:
G:\larp test server\gamemodes\larp.pwn(2975) : error 025: function heading differs from prototype
G:\larp test server\gamemodes\larp.pwn(2977) : error 033: array must be indexed (variable "CarInfo")
EDIT: I know somthihg new now if someone can help me difen a thing calle d cFaction in a script file then call form it wehn player enters a car that would be great not asking to write it for me just a point in some direction or what every i can get!
Thanks in advanced for the help if ya want more info let me know i will give you details in a Pm on how to contact me


Re: Need help with this error in my code - Machinehank34 - 11.08.2009

Darn,
That stumps me.
Greetz,
Machine.