Hallo Community,
Ich habe 2 warnings die ich gerne loswerden möchte.
(134) : warning 206: redundant test: constant expression is non-zero
(138) : warning 225: unreachable code
public OnPlayerConnect(playerid)
{
for(new i;playerInfo:1 < playerInfo; i++)//Zeile 134 warning 206
{
sInfo[playerid][playerInfo:i] = 0;
}
IstRegistriert[playerid] = 0; // Zeile 138 warning 225
GetPlayerName(playerid, name[playerid], 24);
GetPlayerIp(playerid, IP[playerid], 16);
new query[128];
mysql_format(dbhandle, query, sizeof(query), "SELECT * FROM `user` WHERE `username` = '%e' LIMIT 1", name[playerid]);
mysql_tquery(dbhandle, query, "AccountAnlegen", "i", playerid);
return 1;
}
Ich hoffe ihr könnt mir helfen