Weird Problem?
#1

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:

PHP код:
#include <zcmd> 
here's the error:
PHP код:
C:\Users\Admin\Desktop\[GameMode]World Stunt Freeroam v0.5\filterscripts\RAdmin.pwn(363) : warning 217loose indentation
C
:\Users\Admin\Desktop\[GameMode]World Stunt Freeroam v0.5\filterscripts\RAdmin.pwn(363) : error 029invalid expressionassumed zero
C
:\Users\Admin\Desktop\[GameMode]World Stunt Freeroam v0.5\filterscripts\RAdmin.pwn(363) : error 017undefined symbol "cmd_stats"
C:\Users\Admin\Desktop\[GameMode]World Stunt Freeroam v0.5\filterscripts\RAdmin.pwn(363) : error 029invalid expressionassumed zero
C
:\Users\Admin\Desktop\[GameMode]World Stunt Freeroam v0.5\filterscripts\RAdmin.pwn(363) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Here's my code:
PHP код:
CMD:stats(playeridparams[])
{
    new 
string[250];
    
format(stringsizeof(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(playerid5DIALOG_STYLE_MSGBOX"{FF8000}Your Stats:"string"Ok""");
    return 
1;

Reply
#2

Is it the latest version?
Reply
#3

it's @Version: 0.3.1
Reply
#4

Maybe you forgot to close cmd callback somewhere! Had same problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)