Freezing when spawning
#1

Код:
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
Reply
#2

Make sure you have
pawn Код:
forward Spawn(playerid);
Reply
#3

You need to add:
pawn Код:
forward Spawn(playerid)
Somewhere in your script.

EDIT: Two seconds! Two seconds later :P
Reply
#4

pawn Код:
SetTimerEx("Spawn",3000,1,"d",playerid);
Reply
#5

Didnt work
Reply
#6

pawn Код:
SetTimerEx("Spawn", 3000, false, "d", playerid);


forward Spawn(playerid);
public Spawn(playerid)
{
    TogglePlayerControllable(playerid, false);
    //
}
Reply
#7

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?
Reply
#8

https://sampwiki.blast.hk/wiki/SetTimerEx
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)