09.06.2015, 09:18
Look how i make:
now errors
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(string, sizeof(string), "UPDATE users SET `Premium`='1' WHERE `name`='%s'",sendername);
mysql_query(SQL,string);
}
PHP код:
Gamelife.pwn(40139) : warning 219: local variable "sendername" shadows a variable at a preceding level
Gamelife.pwn(40139) : warning 219: local variable "string" shadows a variable at a preceding level