Hallo ich fass mich kurtz.
Ich hab irgendwas gemacht und boom kommt dieser fehler:
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\pawno\include\Dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\pawno\include\foXban.inc(34) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\pawno\include\foXban.inc(50) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\pawno\include\foXban.inc(113) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\pawno\include\blitzer.inc(38) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(452) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(453) : warning 217: loose indentation
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(466) : warning 217: loose indentation
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(473) : warning 217: loose indentation
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(478) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(480) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(482) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(483) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(487) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(489) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(491) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(493) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(495) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(497) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(500) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(502) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(507) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(509) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(510) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(511) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(512) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(514) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(516) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(517) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(518) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(519) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(520) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(521) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(522) : error 010: invalid function or declaration
C:\Users\Kaan\Desktop\K44n´s Reallife Selfmade\gamemodes\selfmade.pwn(523) : error 010: invalid function or declaration
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Und das in der zeile:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(blitzer, 7, cmdtext);
dcmd(tban,4,cmdtext);
dcmd(tunban,6,cmdtext);
if(strcmp(cmdtext,"/admins",true)==0)
{
new string[128];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPVarInt(i,"Adminlvl") > 0) // wenn höher als 0
{
format(string,sizeof(string),"Online Admin: %s AdminLvl:%i",Name(i),GetPVarInt(i,"Adminlvl"));
SendClientMessage(playerid,grün,string);
}
}
}
return 1;
}
if(strcmp(cmdtext,"/pda2",true,10)==0)
{
if(!IstSpielerInFrak(playerid,1))return SendClientMessage(playerid,rot,"Du bist kein Polizist");
if(IsPlayerInRangeOfPoint(playerid,20,936.20001220703, -1201, 18.5))return SendClientMessage(playerid,gelb,"Du bist nicht nahgenug am Tor!");
}
SendClientMessage(playerid,braun,"Das tor wird in 5 Sekunden Schließen");
MoveObject(lspdtor2,936.20001220703, -1201, 18.5-10,7);
SetTimer("pdu2",1000*5,false);
return 1;
}
return 1;
}
if(strcmp(cmdtext,"/pda1",true,10)==0)
{
if(!IstSpielerInFrak(playerid,1))return SendClientMessage(playerid,rot,"Du bist kein Polizist");
if(IsPlayerInRangeOfPoint(playerid,10,1200, -930.2998046875, 43.5))return SendClientMessage(playerid,gelb,"Du bist nicht nahgenug am Tor!");
SendClientMessage(playerid,braun,"Das tor wird in 5 Sekunden Schließen");
MoveObject(lspdtor,1200, -930.2998046875, 43.5-10,7);
SetTimer("pdu1",1000*5,false);
return 1;
}
if(strcmp("/ah",cmdtext,true,10)==0)
{
if(!IstSpielerAdmin(playerid,1))return SendClientMessage(playerid,rot,"Du bist kein admin lvl 1");
ShowPlayerDialog(playerid,DIALOG_ADMINHELP,DIALOG_STYLE_MSGBOX,"Das ist die Admin hilfe!","Level 1:/adminhelp.\n Level 2:/heal,/aheal,/setint.\n Level 3:/frakid,/kick.\n Level 4:----.\n Level 5:/sveh.\n Level 6:----.\n Level 7:/bann.\n Level 8:/makeleader,/tban,/tunban.\n Level 9:----.\n Level 10:/makeadmin.","Okey","Schließen");
return 1;
}
if(strcmp(cmdtext,"/lsair",true,10)==0)
{
if(!IstSpielerAdmin(playerid,4))return SendClientMessage(playerid,rot,"Du bist kein Admin lvl 4!");
SetPlayerPos(playerid,1544.9828,-2301.4373,13.5467);
SendClientMessage(playerid,gelb,"Du hast dich zum Ls Airpot geportet!");
return 1;
}
if(strcmp("/stats",cmdtext,true,10)==0)
{
new string[128];
new frakname[128];
new jobname[64];
switch(GetPVarInt(playerid,"Job"))
{
case 0:{frakname="Keinen Job";}
case 1:{frakname=jobname1;}
case 2:{frakname=jobname2;}
case 3:{frakname=jobname3;}
}
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{frakname="Keine";}
case 1:{frakname=frakname1;}
case 2:{frakname=frakname2;}
case 3:{frakname=frakname3;}
case 4:{frakname=frakname4;}
case 5:{frakname=frakname5;}
case 6:{frakname=frakname6;}
case 7:{frakname=frakname7;}
case 8:{frakname=frakname8;}
case 9:{frakname=frakname9;}
case 10:{frakname=frakname10;}
}
format(string,sizeof(string),"[Dein Name: %s] [Dein Level %i] [Dein Adminlvl: %i] [Deine Fraktion: %s] [Dein Geld: %i] [Dein Job: %s]",Name(playerid),GetPlayerScore(playerid),GetPVarInt(playerid,"Adminlvl"),frakname,GetPlayerMoney(playerid),jobname);
SendClientMessage(playerid,gelb,string);
return 1;
}
if(strcmp("/frakid",cmdtext,true,10)==0)
{
if(!IstSpielerAdmin(playerid,3))return SendClientMessage(playerid,rot,"Du bist kein Admin lvl 8");
ShowPlayerDialog(playerid,DIALOG_FrakID,DIALOG_STYLE_MSGBOX,"Liste Aller Fraktionen","Fraktion 1:LSPD.\n Fraktion 2:Medic.\n Fraktion 3:FBI.\n Fraktion 4:LS Groove.\n Fraktion 5:LS Vagos.\n Fraktion 6:SA Army.\n Fraktion 7:SFPD.\n Fraktion 8: Ordnungsamt.\n Fraktion 9:Fahrschule.\n Fraktion 10:President.","Okey","Schließen");
return 1;
}
if (strcmp("/restart", cmdtext, true, 10) == 0)
{
if(IstSpielerAdmin(playerid,10))
{
print("Der Timer zum GMX wurde gestartet.");
SetTimer("restart", 10000, false); // 10 Sekunden
return 1;
}
}
return 0;
}
Ich bin sehr verzweifelt wirklich
Danke schonmal im vorraus.
MFG K44n