Hier der Code Es sind Zeile 19200-19250
cmd = strtok(cmdtext, idx);
GetPlayerName(playerid,sendername,sizeof(sendername));
dcmd(tban,4,cmdtext);
dcmd(tunban,6,cmdtext);
/* dcmd(kennzeichenerlauben,19,cmdtext);
dcmd(kennzeichen,11,cmdtext);
dcmd(sirene,6,cmdtext);
dcmd(licht,5,cmdtext);
dcmd(kofferraum,10,cmdtext);
dcmd(farbe,5,cmdtext);
dcmd(efa,3,cmdtext);*/
dcmd(gocords,7,cmdtext);
dcmd(zollcontrol,11,cmdtext);
dcmd(sirene,6,cmdtext);
dcmd(givedonator,11,cmdtext);
//dcmd(unban,5,cmdtext);
dcmd(arbobjid,8,cmdtext);
dcmd(arb,3,cmdtext);
dcmd(deletearb,9,cmdtext);
dcmd(deletearbfor,12,cmdtext);
dcmd(arball,6,cmdtext);
dcmd(arbforall,9,cmdtext);
dcmd(arbobj,6,cmdtext);
dcmd_tban(playerid,params[])
{
new pID,pIdName[MAX_PLAYER_NAME],pName[MAX_PLAYER_NAME],banTime,reason[64],string[128];
if(!IsPlayerAdmin(playerid)) { return 1; }
if(sscanf(params,"uds",pID,banTime,reason)) { return SendClientMessage(playerid,0xADC7E7FF,"Usage: /tban [playerid] [time(min)] [reason]"); }
if(!IsPlayerConnected(pID)) { return SendClientMessage(playerid,0xADC7E7FF,"Invalid ID !"); }
if(banTime < 1) { return SendClientMessage(playerid,0xADC7E7FF,"Minimum Time: 1 Minute"); }
GetPlayerName(pID,pIdName,sizeof(pIdName));
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof(string),"[TIMEBAN] Admin %s timebanned %s for %d Minutes. Reason: %s",pName,pIdName,banTime,reason);
SendClientMessageToAll(0xADC7E7FF,string);
printf("AdmCmd(TIMEBAN): Admin: %s(%i) - Timebanned Player: %s(%i) - Timeban Reason: %s",pName,playerid,pIdName,pID,reason);
pBanner[pID] = pName;
TBan(pID,banTime);
}
dcmd_tunban(playerid,params[])
{
new pName[MAX_PLAYER_NAME],pIdName[MAX_PLAYER_NAME];
if(!IsPlayerAdmin(playerid)) { return 1; }
if(sscanf(params,"s",pIdName)) { return SendClientMessage(playerid,0xADC7E7FF,"Usage: /tunban [FULL-playername]"); }
GetPlayerName(playerid,pName,sizeof(pName));
if(BanFileExist(pIdName))
{
TUnban(pIdName);
printf("AdmCmd(UNTIMEBAN): Admin: %s(%i) - untimebanned Player: %s",pName,playerid,pIdName);
} else { return SendClientMessage(playerid,0xADC7E7FF,"Error: Wrong name"); }
}
Hier die 4 Errors:
C:\Users\Peter\Desktop\pawno\include\streamer.inc(330) : warning 201: redefinition of constant/macro (symbol "OnPlayerConnect")
Zeile (19202) : error 012: invalid function call, not a valid address
Zeile (19202) : error 029: invalid expression, assumed zero
Zeile (19202) : error 012: invalid function call, not a valid address
Zeile (19202) : fatal error 107: too many error messages on one line
5 Errors, 1 Warnungen
Du hast Errors im Skript. Kompilierung abgebrochen
PWNMod Compiler Version 1.2
(c) Trooper[Y]
In Kooperation mit GTA-Servers.de
Bitte um Hilfe