Hallo kann mir jemand helfen?
stock Checkban(playerid)
{
new query[256];
format(query,sizeof(query),"SELECT * FROM server_bans WHERE IP='%s' OR Name='%s'",SpielerIP(playerid),PlayerInfo[playerid][pName]);
mysql_query(query);
mysql_store_result();
new zeit,admin[24],reason[64],string[128];
mysql_query(query);
mysql_store_result();
if(mysql_num_rows())
{
if(mysql_retrieve_row())
{
mysql_fetch_field("Grund",reason);
mysql_fetch_field("Admin",admin);
mysql_fetch_field("Zeit",result);
mysql_free_result();
zeit = strval(result);
if(zeit == -1)
{
format(string, sizeof(string), "Du bist vom Server gebannt! Dauer: Unbegrenz - Grund: %s - Ausführender Admin: %s.",reason,admin);
SendClientMessage(playerid, COLOR_RED, string);
TogglePlayerControllable(playerid,0);
Kick(playerid);
return 1;
}
else
{
if(gettime() < zeit)
{
new timebanned = zeit-gettime();
if(floatround(timebanned/86400) > 0)//tage
{
format(string, sizeof(string), "Du bist vom Server gebannt! Dauer: %i Tag(e) - Grund: %s - Ausführender Admin: %s.",timebanned/86400,reason,admin);
SendClientMessage(playerid, COLOR_RED, string);
}
else if(floatround(timebanned/3600) > 0)//stunden
{
format(string, sizeof(string), "Du bist vom Server gebannt! Dauer: %i Stunde(n) - Grund: %s - Ausführender Admin: %s.",timebanned/3600,reason,admin);
SendClientMessage(playerid, COLOR_RED, string);
}
else if(floatround(timebanned/60) > 0 || floatround(timebanned%60) > 0)//minuten,sekunde
{
format(string, sizeof(string), "Du bist vom Server gebannt! Dauer: %i:%02d Minuten - Grund: %s - Ausführender Admin: %s.",timebanned/60,timebanned%60,reason,admin);
SendClientMessage(playerid, COLOR_RED, string);
}
}
else
{
format(query,sizeof(query),"DELETE FROM server_bans WHERE IP ='%s' OR Name = '%s'",SpielerIP(playerid),PlayerInfo[playerid][pName]);
mysql_query(query);
}
}
}
return 1;
}
}
und die fehler habe ich
C:\Users\Tim\Desktop\SAMP Script\gamemodes\gamemode.pwn(4870) : error 035: argument type mismatch (argument 1)
C:\Users\Tim\Desktop\SAMP Script\gamemodes\gamemode.pwn(4871) : error 035: argument type mismatch (argument 1)
C:\Users\Tim\Desktop\SAMP Script\gamemodes\gamemode.pwn(4872) : error 035: argument type mismatch (argument 1)
C:\Users\Tim\Desktop\SAMP Script\gamemodes\gamemode.pwn(4874) : error 035: argument type mismatch (argument 1)
//Edit
Makiert