Freezing Problem :'( - 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: Freezing Problem :'( (
/showthread.php?tid=118934)
Freezing Problem :'( -
OoSaSaOo - 05.01.2010
first i got a script from this link :
http://forum.sa-mp.com/index.php?topic=123174.0
__________________________________________________ __________________________________________________ __________
------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------
Код:
7547. //Next to the other forward
7548. forward VFreeze(vehicleid,Float:x,Float:y,Float:z);
7549.
7550. //When they teleport
7551. New Float:x, Float:y, Float:z;
7552. GetPlayerPos(playerid,x,y,z);
7553. for(new v; v<750; v++)
7554. {
7555. if(GetVehicleModel(vehicleid)!=0)
7556. {
7557. New Float:vx,Float:vy, Float:vz;
7558. GetVehiclePos(v,vx,vy,vz);
7559. if((vx-x<50)&&(vy-y<50)&&(vz-z<50))
7560. {
7561. SetTimerEx("VFreeze",3000,0,"dfff",v,vx,vy,vz);
7562. }
7563. }
7564. }
7565.
7566. //The Timer ending
7567. public VFreeze(vehicleid,Float:x,Float:y,Float:z)
7568. {
7569. for(new i;i<200;i++)
7570. {
7571. if(IsPlayerConnected(i))
7572. {
7573. if(IsPlayerInVehicle(i,vehicleid))return 0;
7574. SetVehiclePos(vehicleid,x,y,z);
7575. }
7576. }
7577. return 1;
7578.}
__________________________________________________ __________________________________________________ __________
------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------
and its give me following errors :
(7551) : error 010: invalid function or declaration
(7553) : error 010: invalid function or declaration
(7555) : error 010: invalid function or declaration
(7559) : error 010: invalid function or declaration
__________________________________________________ __________________________________________________ __________
------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------
what should i do
Re: Freezing Problem :'( -
OoSaSaOo - 05.01.2010
Anyone who knows how to solve it
Re: Freezing Problem :'( -
Grim_ - 05.01.2010
pawn Код:
new Float:x, Float:y, Float:z;
Re: Freezing Problem :'( -
OoSaSaOo - 05.01.2010
Still Giving Me Those Errors