07.03.2014, 23:03
So I was make when I give myself leader then it update's fine I mean it save fine and I type /allmembers and on Leader 1: and then it show my name which is fine know is the problem on loading. I reset or shutdown server then turn on and go to server and type /allmembers and it says Leader 1: and here is empty but it should be my name. Thanks
this is in ongamemodeinit:
and here is callback LoadFBI
this is in ongamemodeinit:
pawn Код:
mysql_format(mysql,query,sizeof(query),"SELECT * FROM `fbiclanovi`");
mysql_tquery(mysql,query,"LoadFBI","");
pawn Код:
forward LoadFBI();
public LoadFBI()
{
new rows,fields;
cache_get_data(rows,fields,mysql);
if(rows)
{
cache_get_field_content(0,"Leader1",FBIInfo[1][Leader]);
}
return 1;
}