SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 19/07/2009, 07:03 PM   #1
[SOB]Chris
Big Clucker
 
Join Date: Jul 2009
Posts: 84
Reputation: 0
Default Timer Error

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??
[SOB]Chris is offline  
Old 19/07/2009, 07:05 PM   #2
James_Alex
Gangsta
 
Join Date: Dec 2008
Posts: 570
Reputation: 0
Default Re: Timer Error

i think you must add
"new string[256];" !
James_Alex is offline  
Old 19/07/2009, 07:15 PM   #3
[SOB]Chris
Big Clucker
 
Join Date: Jul 2009
Posts: 84
Reputation: 0
Default Re: Timer Error

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}
[SOB]Chris is offline  
Old 19/07/2009, 07:20 PM   #4
Weirdosport
High-roller
 
Join Date: Jul 2008
Posts: 1,293
Reputation: 0
Default Re: Timer Error

You need to use SetTimerEx instead of SetTimer.

SetTimerEx("drive", 1000, 0, "i", killerid);
Weirdosport is offline  
Old 19/07/2009, 07:30 PM   #5
[SOB]Chris
Big Clucker
 
Join Date: Jul 2009
Posts: 84
Reputation: 0
Default Re: Timer Error

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 .
[SOB]Chris is offline  
Old 19/07/2009, 07:33 PM   #6
Gamer_Z
Guest
 
Posts: n/a
Default Re: Timer Error

update your pawno compiler
 
Old 19/07/2009, 07:46 PM   #7
[SOB]Chris
Big Clucker
 
Join Date: Jul 2009
Posts: 84
Reputation: 0
Default Re: Timer Error

another version of pawno is released? what version is and where can dowload it?
thanks for you help
[SOB]Chris is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countdown timer giving error :s ~Dangun! Help Archive 6 12/05/2010 02:05 PM
My small drug system gets timer error :/ bajskorv123 Help Archive 5 07/02/2010 10:52 AM
[HELP] Kill timer Error. CuervO Help Archive 3 20/01/2010 10:10 PM
Error on timer [SOB]Chris Help Archive 1 19/07/2009 12:07 AM
Timer Error JoeDaDude Help Archive 6 27/05/2009 01:03 PM


All times are GMT. The time now is 12:37 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.