Premium Account
#9

Look how i make:
PHP код:
if(dialogid == DIALOG_HPoints1)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                new 
id,sendername[93],string[178];
                if(
PlayerInfo[playerid][pHPoints] <80) return SCM(playerid,-1,"{37B9C8}You don't have 80 gold.");
                
PlayerInfo[playerid][pHPoints] -= 80;
                if(
PlayerInfo[id][pPremiumAccount] == 1) return SCM(playerid,COLOR_LIGHTRED"Error:{FFFFFF} Acest player detine cont premium.");
                
PlayerInfo[id][pPremiumAccount] = 1;
                
GetPlayerName(id,sendername,sizeof(sendername));
                
format(stringsizeof(string), "UPDATE users SET `Premium`='1' WHERE `name`='%s'",sendername);
                
mysql_query(SQL,string);
            } 
now errors
PHP код:
Gamelife.pwn(40139) : warning 219local variable "sendername" shadows a variable at a preceding level
Gamelife
.pwn(40139) : warning 219local variable "string" shadows a variable at a preceding level 
Reply


Messages In This Thread
Premium Account - by Sn4ke2 - 08.06.2015, 20:36
Re: Premium Account - by DarkLored - 08.06.2015, 20:44
Re: Premium Account - by Sn4ke2 - 08.06.2015, 20:53
Re: Premium Account - by DarkLored - 08.06.2015, 20:55
Re: Premium Account - by Sn4ke2 - 08.06.2015, 21:36
Re: Premium Account - by Sn4ke2 - 09.06.2015, 08:58
Re: Premium Account - by JaydenJason - 09.06.2015, 09:06
Re: Premium Account - by mamorunl - 09.06.2015, 09:06
Re: Premium Account - by Sn4ke2 - 09.06.2015, 09:18
Re: Premium Account - by mamorunl - 09.06.2015, 09:20

Forum Jump:


Users browsing this thread: 1 Guest(s)