Need Help With This Teleport Command!
#1

Need Help With This Teleport Commands! It Dosent Work!
This command is sopus to take me to one of the 2 teleport wen rite
/l1 to take me to the first teleport or /l2 to take me to the second teleport
But it dosent work can some one tell me whats rong?



pawn Code:
if (strcmp("/l", cmdtext, true, 7) == 0) // /l [1-200]
    {
    new ID;
    switch(ID)
    {
      case 1: SetPlayerPos(playerid,927.5640,-1382.3372,654.3943);
      case 2: SetPlayerPos(playerid,-2682.5542,1933.8027,217.2739);
         //and so on to case 200:
      }
    return 1;
    }
Reply
#2

Any one?
Reply
#3

ID is not defined. You can't do it like that.
Reply
#4

I have to define id?
Reply
#5

Yeah.
Reply
#6

-.- Give me the define.
Reply
#7

pLEASE tellme the define!
Reply
#8

Try using strtok, wiki.sa-mp.com helps you.
Reply
#9

You don't want strtok, you want sscanf 2.0
Reply
#10

And why not ZCMD?
Reply


Forum Jump:


Users browsing this thread: