Problem
#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


Messages In This Thread
Problem - by Loinal - 12.05.2017, 10:30
Re: Problem - by coool - 12.05.2017, 10:36
Re: Problem - by ProBro - 12.05.2017, 10:36
Re: Problem - by iLearner - 12.05.2017, 10:39
Re: Problem - by Loinal - 12.05.2017, 10:46
Re: Problem - by iLearner - 12.05.2017, 10:48
Re: Problem - by Loinal - 12.05.2017, 10:51
Re: Problem - by iLearner - 12.05.2017, 10:55
Re: Problem - by Loinal - 12.05.2017, 11:02
Re: Problem - by Loinal - 12.05.2017, 13:07

Forum Jump:


Users browsing this thread: 2 Guest(s)