12.06.2010, 21:51
Код:
if(strcmp(cmd, "/goto", true) == 0) { new str[128]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0xbbff0000 , "/goto [playerid]"); return 1; } new tmpplayer = tmp; new Float:tmpx, Float:tmpy, Float:tmpz; new name[MAX_PLAYER_NAME]; GetPlayerName(tmpplayer, name, sizeof(name)); GetPlayerPos(tmpplayer, tmpx, tmpy, tmpz); SetPlayerPos(playerid, tmpx, tmpy, tmpz+1); format(str, sizeof(str), "You have teleported to %s(ID:%d)", name, tmpplayer); SendClientMessage(playerid, 0x00bbbb00 , str); return 1; }
Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSNR~1.PWN(789) : error 033: array must be indexed (variable "-unknown-") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.