SA-MP Forums Archive
Error. - 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: Error. (/showthread.php?tid=75595)



Error. - -eXo - 03.05.2009

Not sure why I'm getting this error, carid works for isacopcar and isanambulance etc.

Код:
C:\Users\staples036\Downloads\RLRP V2\gamemodes\rlrp.pwn(2746) : error 017: undefined symbol "carid"
Код:
public IsAnOwnableCar(vehicleid)
{
	if(carid == 249 || carid == 254 || carid == 251 || carid == 242 || carid == 223 || carid == 208 || carid == 243 || carid == 246 || carid == 248 || carid == 245 || carid == 219 || carid == 250 || carid == 217 || carid == 252 || carid == 247 || carid == 244 || carid == 253)
	{
		return 1;
	}
	return 0;
}



Re: Error. - Joe Staff - 03.05.2009

because the function says VEHICLEID... not CARID...


Re: Error. - -eXo - 03.05.2009

nvm, thanks.