Timer Error - 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: Timer Error (
/showthread.php?tid=87343)
Timer Error -
[SOB]Chris - 19.07.2009
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??
Re: Timer Error -
James_Alex - 19.07.2009
i think you must add
"new string[256];" !
Re: Timer Error -
[SOB]Chris - 19.07.2009
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}
|
Re: Timer Error -
Weirdosport - 19.07.2009
You need to use SetTimerEx instead of SetTimer.
SetTimerEx("drive", 1000, 0, "i", killerid);
Re: Timer Error -
[SOB]Chris - 19.07.2009
aamm i change the SetTimer for SetTimerExt but the same erro
![confused](images/smilies/confused.gif)
\Colores&cmdvarios.pwn(65) : warning 235: public function lacks forward declaration (symbol "drive")
u dont undertand why, xD
![Sad](images/smilies/sad.gif)
.
Re: Timer Error - Gamer_Z - 19.07.2009
update your pawno compiler
Re: Timer Error -
[SOB]Chris - 19.07.2009
another version of pawno is released? what version is and where can dowload it?
thanks for you help