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



modelid - Puzi - 06.01.2010

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  if(modelid == 574)
  {
 	SendClientMessage(playerid, COLOR_YELLOW, "*** Witamy w Sweeper'ze. Możesz tym czyscić ulice, zarabiając $2 za każdą minutę jazdy!");
 	}
 	return 1;
 	}
Код:
C:\Users\PUZI\Desktop\RP\gamemodes\rp-main.pwn(338) : error 017: undefined symbol "modelid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
I cannot remember whether it was modelid, or does it need to be defined? I would appreciate any help
If it is not modelid, what is it? I simply forgot



Re: modelid - Correlli - 06.01.2010

pawn Код:
if(GetVehicleModel(vehicleid) == 574)
{
  // your code..
}