Timer Error
#1

Again another error on pne timer
: warning 235: public function lacks forward declaration (symbol "drive")
On the top of the script
Code:
forward drive(killerid);
public OnPlayerDeath(playerid, killerid, reason)
Code:
{
	if (IsPlayerInAnyVehicle(killerid))
 	{
	SendClientMessage(playerid,0xffa200ff,"Script Anti DB por Chris ®");
	new Float:x, Float:y, Float:z;GetPlayerPos(playerid,x,y,z);
	SetPlayerSkin(killerid,244);
	SetPlayerColor(killerid,COLOR_PINK);
	CreateExplosion(x, y, z, 7, 10.0);
	SendPlayerMessageToAll(killerid,"Soy re gei y nuuub, solo quiero decir que sali del closet");
	SetTimer("drive",1000,false);
	}
	return 1;
}
public drive(killerid)
Code:
{
	GetPlayerName(killerid, Name, MAX_PLAYER_NAME);
	format(string,sizeof(string),"Atencion todos %s salio del closet =O que gei",Name);
	GameTextForAll(string,10000,5);
}
emmm whats is wrong??
Reply
#2

i think you must add
"new string[256];" !
Reply
#3

Quote:
Originally Posted by James_Alex(Coder)
i think you must add
"new string[256];" !

i put new string[256]; on the top of the script but no delete the error .
\Colores&cmdvarios.pwn"(65)" : warning 235: public function lacks forward declaration (symbol "drive")
the line 65 is this
Quote:
65public drive(killerid)
66{
67 GetPlayerName(killerid, Name, MAX_PLAYER_NAME);
68 format(string,sizeof(string),"Atencion todos %s salio del closet =O que gei",Name);
69 GameTextForAll(string,10000,5);
70}

Reply
#4

You need to use SetTimerEx instead of SetTimer.

SetTimerEx("drive", 1000, 0, "i", killerid);
Reply
#5

aamm i change the SetTimer for SetTimerExt but the same erro
\Colores&cmdvarios.pwn(65) : warning 235: public function lacks forward declaration (symbol "drive")
u dont undertand why, xD .
Reply
#6

update your pawno compiler
Reply
#7

another version of pawno is released? what version is and where can dowload it?
thanks for you help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)