Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

cookies

$
0
0
PHP Code:

IRCCMD:cookie(botidchannel[], user[], host[], params[])
{
    new 
idbString[128], cookies;
    if(
IRC_IsOp(botidchanneluser))
    {
        if(
sscanf(params"ui[24]"id,cookies))
        {
            
IRC_Say(groupIDchannel"7Usage: 1!cookie [id] [cookies]");
            return 
1;
        }
        if(
cookies && cookies 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];
        
GetPlayerName(idpnamesizeof(pname));
        
format(bStringsizeof(bString), "You have given %s (ID: %d) %d cookies.",pnameidcookies);
        
IRC_Say(groupIDchannelbString);
        
format(bStringsizeof(bString), "(#ZoneX) Admin %s given %s (ID: %d) %d cookies"userpnameidcookies);
        
SendClientMessage(idCOLOR_YELLOWbString);
        }
        
    }
    else return 
IRC_Say(groupIDchannel"7Error: 1You must be OP");
    return 
1;


PHP Code:

        if(cookies && cookies 100)
        {
           
IRC_Say(groupIDchannel"Invalid Number [from 1 to 100 cookies]");
        }

warning:

D:\samp folder\ZoneX ZX\gamemodes\ZoneX.pwn(7755) : warning 205redundant codeconstant expression is zero 

PHP Code:

new idbString[128], cookies;

Error:

D:\samp folder\ZoneX ZX\gamemodes\ZoneX.pwn(7747) : error 001expected token"-identifier-"but found "-integer value-" 


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>