Ich habe jetzt diese Errors, als ich das gescriptet habe...
C:\Users\ante valentic\Desktop\SAMP SERVER\gamemodes\Reallife.pwn(1034) : error 017: undefined symbol "Now"
C:\Users\ante valentic\Desktop\SAMP SERVER\gamemodes\Reallife.pwn(1035) : error 017: undefined symbol "timebanplayer"
C:\Users\ante valentic\Desktop\SAMP SERVER\gamemodes\Reallife.pwn(1034) : warning 204: symbol is assigned a value that is never used: "zeitdauer"
C:\Users\ante valentic\Desktop\SAMP SERVER\gamemodes\Reallife.pwn(2173) : error 001: expected token: ";", but found "-identifier-"
C:\Users\ante valentic\Desktop\SAMP SERVER\gamemodes\Reallife.pwn(2173) : error 017: undefined symbol "data"
C:\Users\ante valentic\Desktop\SAMP SERVER\gamemodes\Reallife.pwn(2173) : warning 215: expression has no effect
C:\Users\ante valentic\Desktop\SAMP SERVER\gamemodes\Reallife.pwn(2173) : error 001: expected token: ";", but found "]"
C:\Users\ante valentic\Desktop\SAMP SERVER\gamemodes\Reallife.pwn(2173) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Hier irgendwo aber ich finde es nicht...
public timebancheck(playerid)
{
new query[256]
data[255],ergebnis,timestamp;
format(query,sizeof(query),"SELECT * FROM `timeban` WHERE `Ip`='%s' OR `name`='%s'",gPlayerIp[playerid],gPlayerName[playerid]);
mysql_query(dbhandle,query);
mysql_store_result();
if(mysql_num_rows())
{
mysql_fetch_field("id",data);
ergebnis=strval(data);
mysql_fetch_field("datum",data);
timestamp=strval(data);
if(ergebnis!=0)
{
if(Now()<timestamp)
{
new string[128];
new zahl=timestamp-Now();
zahl=zahl/60;
format(string,128,"Du bist noch %d Minuten gebannt.",zahl);
SendClientMessage(playerid,0xFF0000FF,string);
return Kick(playerid);
}
else
{
format(query,sizeof(query),"DELETE FROM `timeban` WHERE `Ip`='%s' OR `name`='%s'",gPlayerIp[playerid],gPlayerName[playerid]);
mysql_query(dbhandle,query);
}
}
mysql_free_result();
return 1;
}