What is the issue with my /stats command here?
#1

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 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Warning

This is the code:

PHP код:
CMD:stats(playeridparams[])
{
    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(string1sizeof string1"{44A1D0}Money: {FFFFFF}[%d] {44A1D0}Deaths: {FFFFFF}[$%d] {44A1D0}Kills: {FFFFFF}[$%d] {44A1D0}Crack: {FFFFFF}[$%d]"money,deaths,kills,crack);
          
format(statssizeof 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]; 
Reply
#2

Do you have that pCrack in an enum ?
Reply
#3

Just found my issue, my enum for crack is PlayerDrugInfo, not PlayerInfo. Thanks for the help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)