20.03.2009, 23:31
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.
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
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 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