What is the issue with my /stats command here? - 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: What is the issue with my /stats command here? (
/showthread.php?tid=503716)
What is the issue with my /stats command here? -
K9IsGodly - 30.03.2014
I'm getting this tag mismatch error and my script still compiles, but I do want to fix this issue.
PHP код:
C:\Users\Nolan\Desktop\Pawn Scripting\gamemodes\Roleplayscript.pwn(929) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
This is the code:
PHP код:
CMD:stats(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new money = PlayerInfo[playerid][pCash];
new deaths = PlayerInfo[playerid][pDeaths];
new kills = PlayerInfo[playerid][pKills];
new crack = PlayerInfo[playerid][pCrack];
new string1[128],stats[1024];
format(string1, sizeof string1, "{44A1D0}Money: {FFFFFF}[%d] {44A1D0}Deaths: {FFFFFF}[$%d] {44A1D0}Kills: {FFFFFF}[$%d] {44A1D0}Crack: {FFFFFF}[$%d]", money,deaths,kills,crack);
format(stats, sizeof stats, "%s", string1);
ShowPlayerDialog(playerid,102,DIALOG_STYLE_MSGBOX,""COL_BLUE"Your account:",stats,"Ok","");
return 1;
}
return 1;
}
This is line 929
PHP код:
new crack = PlayerInfo[playerid][pCrack];
Re: What is the issue with my /stats command here? -
luis_mendoza - 30.03.2014
Do you have that pCrack in an enum ?
Re: What is the issue with my /stats command here? -
K9IsGodly - 30.03.2014
Just found my issue, my enum for crack is PlayerDrugInfo, not PlayerInfo. Thanks for the help!