08.01.2017, 08:46
Hello guys, so i've been making an admin system with using Y_INI and ZCMD as command processor...
and i got error with ZCMD, inc. and i've already included the ZCMD:
here's the error:
Here's my code:
and i got error with ZCMD, inc. and i've already included the ZCMD:
PHP код:
#include <zcmd>
PHP код:
C:\Users\Admin\Desktop\[GameMode]World Stunt Freeroam v0.5\filterscripts\RAdmin.pwn(363) : warning 217: loose indentation
C:\Users\Admin\Desktop\[GameMode]World Stunt Freeroam v0.5\filterscripts\RAdmin.pwn(363) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\[GameMode]World Stunt Freeroam v0.5\filterscripts\RAdmin.pwn(363) : error 017: undefined symbol "cmd_stats"
C:\Users\Admin\Desktop\[GameMode]World Stunt Freeroam v0.5\filterscripts\RAdmin.pwn(363) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\[GameMode]World Stunt Freeroam v0.5\filterscripts\RAdmin.pwn(363) : 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.
PHP код:
CMD:stats(playerid, params[])
{
new string[250];
format(string, sizeof(string), "{FFFFFF}Your Stats:\n\n{FF0000}Kills: {FFFFFF}%d\n{FF0000}Deaths: {FFFFFF}%d\n{FF0000}Score: {FFFFFF}%d\n{FF0000}Money: {FFFFFF}%d\n{FF0000}Admin Level: {FFFFFF}%d\n{FF0000}TP Level: {FFFFFF}%d", PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths], GetPlayerScore(playerid), GetPlayerMoney(playerid), PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pTP]);
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "{FF8000}Your Stats:", string, "Ok", "");
return 1;
}