/move [x] [y] [z]
#1

hey there....

ive been working with DCMD to get a /move command that allows you to move any place you wish...


there are a few errors, and i'm unsure of how to fix.

Code:
dcmd_move(playerid,params[]) {
	  new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index), tmp3 = strtok(params,Index);
	  if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, POLICE_COLOR, "USAGE: /move [X] [Y] [Z]");
		new X, Y, Z, string[128];
		return SetPlayerPos(playerid, X, Y, Z);
}
C:\PROGRA~1\GAMES\GTASAN~1\GAMEMO~1\NRGSPAWN.pwn(8 : error 017: undefined symbol "strtok"
C:\PROGRA~1\GAMES\GTASAN~1\GAMEMO~1\NRGSPAWN.pwn(8 : error 033: array must be indexed (variable "tmp3")
C:\PROGRA~1\GAMES\GTASAN~1\GAMEMO~1\NRGSPAWN.pwn(9 0) : warning 204: symbol is assigned a value that is never used: "string"
C:\PROGRA~1\GAMES\GTASAN~1\GAMEMO~1\NRGSPAWN.pwn(8 : warning 203: symbol is never used: "Index"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


cheers,

hazdog
Reply


Messages In This Thread
/move [x] [y] [z] - by hazdog - 20.03.2009, 23:31
Re: /move [x] [y] [z] - by brett7 - 20.03.2009, 23:34
Re: /move [x] [y] [z] - by ICECOLDKILLAK8 - 20.03.2009, 23:40
Re: /move [x] [y] [z] - by hazdog - 21.03.2009, 02:22
Re: /move [x] [y] [z] - by Norn - 21.03.2009, 02:25
Re: /move [x] [y] [z] - by hazdog - 21.03.2009, 02:25
Re: /move [x] [y] [z] - by Donny_k - 21.03.2009, 08:53
Re: /move [x] [y] [z] - by LarzI - 21.03.2009, 10:55
Re: /move [x] [y] [z] - by MenaceX^ - 21.03.2009, 11:02

Forum Jump:


Users browsing this thread: 5 Guest(s)