SA-MP Forums Archive
Weird Problem? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Weird Problem? (/showthread.php?tid=625921)



Weird Problem? - RyderX - 08.01.2017

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;




Re: Weird Problem? - iLearner - 08.01.2017

Is it the latest version?


Re: Weird Problem? - RyderX - 08.01.2017

it's @Version: 0.3.1


Re: Weird Problem? - Bolex_ - 08.01.2017

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