30.03.2018, 02:18
i wanna make it simply, but i think this code is randomly stirred
checking date ban from unix timestamp, and convert to string (permanent / not)
checking date ban from unix timestamp, and convert to string (permanent / not)
PHP код:
public BanCheck(playerid)
{
// blabla
if(gettime < unbantime
{
new type[20], unbantime;
// load cache mysql & unbantime
format(type, sizeof(type) "%s", (unbantime == 0) ? ("Permanent") : (unbantime)); // this code make crash
// blbla
new string[128];
format(string, sizeof(string), "Banned Type: %s", type); // this will show text from type
// blabla
}
return 1;
}