SA-MP Forums Archive
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=206419)



Timer ERROR - AzTeCaS - 03.01.2011

I use this Timer but this is doesnot work

Код:
forward rwtw(playerid);
Public rwtw(playerid)
{
Код:
SetTimerEx("rwtw",500, true, "i", playerid);
one can help me


Re: Timer ERROR - [WF]Demon - 03.01.2011

only thing that shouldn't work about that is that Public isn't supposed to be capitalized so

pawn Код:
forward rwtw(playerid);
public rwtw(playerid)
{



Re : Timer ERROR - AzTeCaS - 03.01.2011

so what now?


Re: Timer ERROR - Sascha - 03.01.2011

do what crodox said... if it still doesn't work send us the code of the public function...


Re: Timer ERROR - ToPhrESH - 03.01.2011

If it hasn't worked yet, post the part of the script that contains the errors. Providing us with 3 lines of script isn't supplying us with much materials to work with.


Re : Timer ERROR - AzTeCaS - 04.01.2011

This Doesnot work so here my part of script

pawn Код:
forward rwtw(playerid);
public rwtw(playerid)
{
pawn Код:
if (strcmp("/rwtw", cmdtext, true, 10) == 0)
    {
           if(GetPlayerTeam(playerid) == 1) SetPlayerPos( playerid,1463.1791,1465.7102,10.8281);
           if(GetPlayerTeam(playerid) == 0) SetPlayerPos( playerid, 1406.1410,1462.1648,10.8203);

           if(GetPlayerTeam(playerid) == 0) SetPlayerColor(playerid, COLOR_RED);
           if(GetPlayerTeam(playerid) == 1) SetPlayerColor(playerid, COLOR_ADMINBLUE);
           if(GetPlayerTeam(playerid) == 0) SetPlayerSkin(playerid, 134);
           if(GetPlayerTeam(playerid) == 1) SetPlayerSkin(playerid, 18);

           if(GetPlayerTeam(playerid) == 0) GivePlayerWeapon(playerid, 26,9999999);
           if(GetPlayerTeam(playerid) == 1) GivePlayerWeapon(playerid, 26, 9999999);

           if(GetPlayerTeam(playerid) == 0) GivePlayerWeapon(playerid, 28,9999999);
           if(GetPlayerTeam(playerid) == 1) GivePlayerWeapon(playerid, 28, 9999999);

           if(GetPlayerTeam(playerid) == 0) SetPlayerHealth(playerid, 100);
           if(GetPlayerTeam(playerid) == 1) SetPlayerHealth(playerid, 100);

           if(GetPlayerTeam(playerid) == 0) SetPlayerArmour(playerid, 100);
           if(GetPlayerTeam(playerid) == 1) SetPlayerArmour(playerid, 100);
           SetTimerEx("rwtw",500, false, "i", playerid);
           SendClientMessageToAll(COLOR_WHITE,"==================================================================================");
           SendClientMessageToAll(COLOR_YELLOW2,"Player Has Joined Team DeathMatch /rwtw if u want to join , u will join in 15second!");
           SendClientMessageToAll(COLOR_WHITE,"===================================================================================");
           

           return 1;
    }



Re: Timer ERROR - Sascha - 04.01.2011

ehm your [ pawn ] got mixed...
if I see it right you are trying to use cmdtext at the custom public, which obviously won't work...


Re : Timer ERROR - AzTeCaS - 04.01.2011

can any correct?


Re: Timer ERROR - Sascha - 04.01.2011

send us whole code of the public function...


Re : Timer ERROR - AzTeCaS - 04.01.2011

i dont use any -.-