Freezing when spawning - 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 when spawning (
/showthread.php?tid=228470)
Freezing when spawning -
Snipa - 19.02.2011
Код:
public OnPlayerSpawn(playerid)
{
SetTimer("Spawn",3000,1);
return 1;
}
public Spawn(playerid)
{
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Waiting for objects to load...");
return 1;
}
Код:
C:\Users\Chris\Documents\Serv\Server\gamemodes\COS.pwn(2372) : error 025: function heading differs from prototype
Re: Freezing when spawning -
randomkid88 - 19.02.2011
Make sure you have
Re: Freezing when spawning -
[P4] - 19.02.2011
You need to add:
Somewhere in your script.
EDIT: Two seconds! Two seconds later :P
Re: Freezing when spawning -
MadeMan - 19.02.2011
pawn Код:
SetTimerEx("Spawn",3000,1,"d",playerid);
Re: Freezing when spawning -
Snipa - 19.02.2011
Didnt work
Re: Freezing when spawning - [L3th4l] - 19.02.2011
pawn Код:
SetTimerEx("Spawn", 3000, false, "d", playerid);
forward Spawn(playerid);
public Spawn(playerid)
{
TogglePlayerControllable(playerid, false);
//
}
Re: Freezing when spawning -
Snipa - 19.02.2011
Quote:
Originally Posted by [L3th4l]
pawn Код:
SetTimerEx("Spawn", 3000, false, "d", playerid);
forward Spawn(playerid); public Spawn(playerid) { TogglePlayerControllable(playerid, false); // }
|
What are all the params of SetTimerEx? does the "d" stand for duration?
Re: Freezing when spawning -
MadeMan - 19.02.2011
https://sampwiki.blast.hk/wiki/SetTimerEx