Timer ERROR
#1

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
Reply
#2

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)
{
Reply
#3

so what now?
Reply
#4

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

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.
Reply
#6

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;
    }
Reply
#7

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

can any correct?
Reply
#9

send us whole code of the public function...
Reply
#10

i dont use any -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)