forward CheckSuspend1337(username[]);
public CheckSuspend1337(username[])
{
new num_rows,num_fields;
cache_get_data(num_rows,num_fields,dbhandle);
if(num_rows==0)
{
new string1337[128];
format(string1337,sizeof(string1337),"%s",username);
iEcho(string1337);
}
else
{
new string[128],temp_reason[128],temp_bannedby[128],temp_when[128]
cache_get_field_content(0, "reason", temp_reason);
cache_get_field_content(0, "bannedby", temp_bannedby);
cache_get_field_content(0, "whendidithappen", temp_when);
format(string,sizeof(string),"%s was banned for %s by %s on %s",username,temp_reason,temp_bannedby,temp_when);
iEcho(string);
return true;
}
}
cache_get_field_content(0, "reason", temp_reason);
new string[128],temp_reason[128],temp_bannedby[128],temp_when[128];
Code:
new string[128],temp_reason[128],temp_bannedby[128],temp_when[128]; |