Need Help With This Teleport Command! - 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: Need Help With This Teleport Command! (
/showthread.php?tid=212111)
Need Help With This Teleport Command! -
Elmerz_com - 16.01.2011
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;
}
Re: Need Help With This Teleport Command! -
Elmerz_com - 16.01.2011
Any one?
Re: Need Help With This Teleport Command! -
hanzen - 16.01.2011
ID is not defined. You can't do it like that.
Re: Need Help With This Teleport Command! -
Elmerz_com - 16.01.2011
I have to define id?
Re: Need Help With This Teleport Command! -
Typhome - 16.01.2011
Yeah.
Re: Need Help With This Teleport Command! -
Elmerz_com - 16.01.2011
-.- Give me the define.
Re: Need Help With This Teleport Command! -
Elmerz_com - 16.01.2011
pLEASE tellme the define!
Re: Need Help With This Teleport Command! -
Kase - 16.01.2011
Try using strtok, wiki.sa-mp.com helps you.
Re: Need Help With This Teleport Command! -
hanzen - 16.01.2011
You don't want strtok, you want sscanf 2.0
Re: Need Help With This Teleport Command! -
Kase - 16.01.2011
And why not ZCMD?