Problem
#1

PHP код:
pData[playerid][Cookies] += Max
Код:
warning 213: tag mismatch
Reply
#2

Looks like both are not in the same tag, forexample if one is a float and another integer it will give you tag mismatch warning.
Reply
#3

Try

new pData[playerid][Cookies] += Max;
Reply
#4

Show us how did you define "Max".
Reply
#5

Quote:
Originally Posted by iLearner
Посмотреть сообщение
Show us how did you define "Max".
PHP код:
enum DATAX //We name our enumerator as PDATA (which stands for PlayerDATA). You can name it however you want.
{
    
ID//Will be used later to store player's ID from database so we can use it anywhere later
    
Password[129], //We will load player's password into this varible from database
    
Admin//We will load player's admin level from database into this variable so we can use it anywhere later.
    
VIP//We will load player's VIP level from database into this variable so we can use it anywhere later.
    
Kills,
    
Cookies,
    
Deaths,
    
Score,
    
Money,
    
pTotalTime,
    
pConnectTime,
    
pHours,
    
pMinutes,
    
pSeconds,
    
RaceWon,
    
//We will load player's money from database into this variable so we can use it anywhere later.
};
new 
pData[MAX_PLAYERS][DATAX]; //Variable that stores enumerator above
new Maxbool:created
Reply
#6

At this point i'd have to ask you show me the block of code where that warning appears.
Reply
#7

Quote:
Originally Posted by iLearner
Посмотреть сообщение
At this point i'd have to ask you show me the block of code where that warning appears.
PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == me)
    {
    if(
takenbyplayer == true) { SendClientMessage(playeridCOLOR_YELLOW"* Sorry the hidden pickup already taken by other players"); return 1;}
    new 
szString[128];
    
takenbyplayer true;
    
format(szStringsizeof(szString), "* You have been found the Player hidden pickup and win %d Cookies"Max);
    
SendClientMessage(playeridCOLOR_GREENszString);
    
SendClientMessage(playeridCOLOR_GREEN"* You can use your Cookies by typing /rocket");
    
pData[playerid][Cookies] += Max;
    new 
test[128], szName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridszNamesizeof(szName));
    
format(test,sizeof(test),"%s has found the ZoneX Hidden pickup and won %d Cookies"GetName(playerid), Max);
    new 
IRC[130];
    
format(IRCsizeof(IRC), "0,3* %s has Found the Player Hidden Pickup won %d Cookies.",GetName(playerid),Max);
    
IRC_GroupSay(groupIDIRC_CHANNELIRC);
    
SetTimerEx("pgoos"10000false"i"playerid);
    
DestroyPickup(me);
    }
    return 
1;
}
IRCCMD:givecookies(botidchannel[], user[], host[], params[])
{
    new 
idaCookies;
    if(
IRC_IsOp(botidchanneluser))
    {
        if(
sscanf(params"ui"id,aCookies))
        {
            
IRC_Say(groupIDchannel"7Usage: 1!givecoin [id] [Cookies]");
            return 
1;
        }
        if(
aCookies || aCookies 100
        {
           
IRC_Say(groupIDchannel"Invalid Number [from 1 to 100 Cookies]");
        }
        if(!
IsPlayerConnected(id)) return IRC_Say(groupIDchannel"Invalid Player ID.");
        {
        new 
pname[MAX_PLAYER_NAME], bString[128];
        
GetPlayerName(idpnamesizeof(pname));
        
format(bStringsizeof(bString), "You have given %s (ID: %d) %d Cookies.",pnameidaCookies);
        
IRC_Say(groupIDchannelbString);
        
format(bStringsizeof(bString), "(#ZoneX) Admin %s given %s (ID: %d) %d Cookies"userpnameidaCookies);
        
SendClientMessage(idCOLOR_YELLOWbString);
        
pData[id][Cookies] += aCookies;
        }
        
    }
    else return 
IRC_Say(groupIDchannel"7Error: 1You must be OP");
    return 
1;
}
and 
every command has pData[playerid][Cookies
Reply
#8

Please post defination of COLOR_GREEN.

Also, did you assign any value to variable Max? if so where and what.
Reply
#9

Quote:
Originally Posted by iLearner
Посмотреть сообщение
Please post defination of COLOR_GREEN.

Also, did you assign any value to varialbe Max? if so where and what.
PHP код:
#define COLOR_GREEN 0x33AA33AA 
And no there is no varialbe
Reply
#10

Any help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)