Car lock - 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: Car lock (
/showthread.php?tid=140156)
Car lock -
sansko - 07.04.2010
hey everybody
I want to spawn an car that is locked fore every player
Ialready found one topic but it gives me this error
C:\Users\Sander\Desktop\sa-mp scripting\r7\gamemodes\grandlarc.pwn(754) : error 010: invalid function or declaration
this is the code
Код:
public OnVehicleSpawn(vehicleid);
for(i == 0; i<MAX_PLAYERS; i++) //error in this line
{
SetVehicleParamsForPlayer(barricadecar[0],i, 0, 1);
SetVehicleParamsForPlayer(barricadecar[1],i, 0, 1);
SetVehicleParamsForPlayer(barricadecar[2],i, 0, 1);
}
can you help me
Thanks
Re: Car lock -
Hiddos - 07.04.2010
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
Re: Car lock -
sansko - 07.04.2010
doesn't work
Re: Car lock -
M4S7ERMIND - 07.04.2010
You're suppose to lock the vehicles
OnVehicleStreamIn callback:
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(vehicleid == barricadecar[0] || vehicleid == barricadecar[1] || vehicleid == barricadecar[2])
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
}
return 1;
}
Re: Car lock -
aircombat - 07.04.2010
its like this :
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
Re: Car lock -
sansko - 07.04.2010
It works, Thanks
------------------------------------
this forum is very usefull
------------------------------------
Re: Car lock -
aircombat - 07.04.2010
Quote:
Originally Posted by sansko
It works, Thanks
------------------------------------
this forum is very usefull
------------------------------------
|
urw
, indeed it is