Timer problem
#1

When i write /lol after 5 seconds it should teleport me to some position i set.
Check this.
Code:
forward loltimer();            // at top


    if(!strcmp(cmdtext, "/lol", true))      // in  "public OnPlayerCommandText(playerid, cmdtext[])"
    {
            SetTimer("loltimer", 5000, false);
            return 1;
        }
           return 1;
        }


public loltimer()
{
            SetPlayerPos(playerid,2482.2227,-1646.2852,18.3521);
            return 1;
            }
I get error that "playerid" in "SetPlayerPos" line is not defined. I Dont Know what to do.
Reply


Messages In This Thread
Timer problem - by nejc001 - 05.10.2010, 14:57
Re: Timer problem - by Matej_ - 05.10.2010, 15:02
Re: Timer problem - by Bumbis - 05.10.2010, 15:04
Re: Timer problem - by nejc001 - 05.10.2010, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)