05.01.2012, 21:20
Hi, guys!
Well, I am changing my commands to zcmd and I have one problem. What should I do whit this one?
After I compline, I got these errors:
What should I do? Help, please
Well, I am changing my commands to zcmd and I have one problem. What should I do whit this one?
pawn Код:
CMD:s(playerid, params[])
{
if(cmdtext[2]==0){SendClientMessage(playerid,0x00FF00AA, "* Naudojimas: {347C17}/s [tekstas]"); return 1;}
new zin[256],vardas[MAX_PLAYER_NAME];
GetPlayerName(playerid,vardas,MAX_PLAYER_NAME);
format(zin,sizeof(zin),"{66ff33}Adminas {66ff33}%s: {66ff33}%s",vardas,cmdtext[3]);
SendClientMessageToAll(0x00DAECAA,zin);
return 1;
}
pawn Код:
D:\GTASA~1\ghjhj\GAMEMO~1\band7.pwn(17597) : error 017: undefined symbol "cmdtext"
D:\GTASA~1\ghjhj\GAMEMO~1\band7.pwn(17597) : warning 215: expression has no effect
D:\GTASA~1\ghjhj\GAMEMO~1\band7.pwn(17597) : error 001: expected token: ";", but found "]"
D:\GTASA~1\ghjhj\GAMEMO~1\band7.pwn(17597) : error 029: invalid expression, assumed zero
D:\GTASA~1\ghjhj\GAMEMO~1\band7.pwn(17597) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
