01.04.2015, 14:36
@Anuris:
pawn Code:
public OnAdminQueryFinished(playerid)
{
// first we've to check whether there are any results, if yes, it will simply continue.. otherwise, nothing will happen, you could add an else statement to the following if statement if you wanted to do something about when there are no row existing rows.
if(cache_get_row_count())
{
new lvl = cache_get_row_int(0,0);
SendMes(playerid, -1, "%i", lvl);
if(lvl > 0)
{
//Don't exec
}
else
{
//exec
}
}
return true; // returning true will clear out this callback's cache.
}