Hallo Community ich wollte beim Account laden abfragen ob der spieler gebannt ist was mache ich falsch?
public AccountLaden(playerid)
{
new num_rows,num_fields;
cache_get_data(num_rows,num_fields,dbhandle);
if(num_rows==1)
{
sInfo[playerid][eingeloggt] = 1;
sInfo[playerid][level] = cache_get_field_content_int(0,"level",dbhandle);
SetPlayerScore(playerid,sInfo[playerid][level]);
sInfo[playerid][id] = cache_get_field_content_int(0,"id",dbhandle);
SetPlayerMoney(playerid,cache_get_field_content_int(0,"money",dbhandle));
sInfo[playerid][alevel] = cache_get_field_content_int(0,"alevel",dbhandle);
sInfo[playerid][banned] = cache_get_field_content_int(0,"banned",dbhandle);
if(IsBanned(playerid,1));//Zeile 105
{
SendClientMessage(playerid,ROT,"Du bist gebannt!");
Kick(playerid);
return 1;
}
}
else
{
SendClientMessage(playerid,ROT,"Das eingegebene Passwort ist falsch!");
ShowPlayerDialog(playerid,2,DIALOG_STYLE_PASSWORD,"Login","Gebe bitte dein Passwort ein:","Weiter","Abbrechen");
}
return 1;
IsBanned(playerid,a_ban)
{
if(sInfo[playerid][banned] > a_ban)return 1;
return 0;
}
ErroR:
(105) : error 036: empty statement