WARNING RETURN VALUE
#1


HELP
Reply
#2

if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 10575, DIALOG_STYLE_INPUT, "Gatexili Akauntis Dabruneba", "Chaweret Gatexili Akauntis ZUSTI Saxeli Serverze", "Ok", "Gauqmeba");
new hgh[300];
format(hgh, sizeof(hgh), "SELECT * FROM `accounts` WHERE name = '%s'",(inputtext));
mysql_queryaaa(hgh);
mysql_store_result();
if(mysql_fetch_row_format(hgh))
{
new regmyip[16];
new myip[16];
//new keyip[30];
new parolii[50];
GetPlayerIp(playerid,myip,sizeof(myip));
BaseGet("pIpReg",regmyip);
//BaseGet("pKeyip",keyip);
BaseGet("pKey",parolii);
if(GetString(myip,regmyip))
{
new ragaca[123];
format(hgh, sizeof(hgh), " Saxeli: %s |> Paroli: %s ",(inputtext),parolii);
SendClientMessage(playerid, COLOR_LIGHTRED, hgh);
format(ragaca, sizeof(ragaca), "UPDATE accounts SET pEmail = 'None' WHERE name = '%s'",(inputtext));
mysql_queryaaa(ragaca);
}
else SendClientMessage(playerid, COLOR_GRAD1, "Es Akaunti Ar Aris Registrirebuli Shens IP'ze");
}
else SendClientMessage(playerid, COLOR_GRAD1, "Aseti Akaunti Ar Arsebobs Serveris Monacemta Bazashi");
mysql_free_result();
}



HERES CODE
Reply
#3

mysql_fetch_row_format doesn't return any values. You can't use it in a if-statement.
Reply
#4

Why Is Here Warning?
Reply
#5

Quote:
Originally Posted by KevinReinke
Посмотреть сообщение
mysql_fetch_row_format doesn't return any values. You can't use it in a if-statement.
It can.

https://sampwiki.blast.hk/wiki/MySQL#mysql_fetch_row_format
Код:
Return Values:
1 if fetched, 0 if there are no more rows to be fetched.
Reply
#6

Quote:
Originally Posted by BloodyRP
Посмотреть сообщение
It can.

https://sampwiki.blast.hk/wiki/MySQL#mysql_fetch_row_format
Код:
Return Values:
1 if fetched, 0 if there are no more rows to be fetched.
The warning says otherwise.
Reply
#7

Quote:
Originally Posted by KevinReinke
Посмотреть сообщение
The warning says otherwise.
may be he have not default include or something other, dunno. But for sure this func can return a value.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)