Hey vllt kann mir ja jemand helfen i.was hab ich falsch aber was ich habe das hier drin:
if(strcmp(cmd,"/frisk",true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Benutze: /frisk [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Du kannst dich nicht selber Durchsuchen!"); return 1; }
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new text1[20], text2[20], text3[20], text4[20], text5[20];
if(PlayerInfo[giveplayerid][pDrugs] > 0) { text1 = "| Drogen."; } else { text1 = "| Leer."; }
if(PlayerInfo[giveplayerid][pMats] > 0) { text2 = "| Waffenprodukte."; } else { text2 = "| Leer."; }
if(Fishes[giveplayerid][pWeight1] > 0 || Fishes[giveplayerid][pWeight2] > 0 || Fishes[giveplayerid][pWeight3] > 0 || Fishes[giveplayerid][pWeight4] > 0 || Fishes[giveplayerid][pWeight5] > 0) { text3 = "| Fische."; } else { text3 = "| Leer."; }
if(PlayerInfo[giveplayerid][pPhoneBook] > 0) { text4 = "| Telefonbuch."; } else { text4 = "| Leer."; }
if(PlayerInfo[giveplayerid][pCDPlayer] > 0) { text5 = "| CD-Player."; } else { text5 = "| Leer."; }
if(PlayerInfor[giveplayerid][pSFLic] > 0) { text6 = "| San Fierro Pass."; } else { text6 = "| Leer.";}
if(PlayerInfor[giveplayerid][pLVLic] > 0) { text7 = "| Las Venturas Pass."; } else { text7 = "| Leer.";}
if(PlayerInfor[giveplayerid][pRCLic] > 0) { text8 = "| Red Country Pass."; } else { text8 = "| Leer.";}
if(PlayerInfor[giveplayerid][pBSLic] > 0) { text9 = "| Bayside Pass."; } else { text9 = "| Leer.";}
format(string, sizeof(string), "|__________ Gegenstände von %s __________|", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "%s.", text1);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "%s.", text2);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "%s.", text3);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "%s.", text4);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "%s.", text5);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "%s.", text6);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "%s.", text7);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "%s.", text8);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "%s.", text9);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "* %s durchsucht %s...", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist nicht bei dir !");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spierler ist offline !");
return 1;
}
}
return 1;
}
und bekomme dan diese Errors:
C:\Dokumente und Einstellungen\Jochen.JOCHENS-AMD64-\Eigene Dateien\Download\Script\Feat Los Santos\Momentanen Script\Gamemode\ggf.pwn(2119) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Jochen.JOCHENS-AMD64-\Eigene Dateien\Download\Script\Feat Los Santos\Momentanen Script\Gamemode\ggf.pwn(2738) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Jochen.JOCHENS-AMD64-\Eigene Dateien\Download\Script\Feat Los Santos\Momentanen Script\Gamemode\ggf.pwn(9478) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Jochen.JOCHENS-AMD64-\Eigene Dateien\Download\Script\Feat Los Santos\Momentanen Script\Gamemode\ggf.pwn(23948) : error 017: undefined symbol "PlayerInfor"
C:\Dokumente und Einstellungen\Jochen.JOCHENS-AMD64-\Eigene Dateien\Download\Script\Feat Los Santos\Momentanen Script\Gamemode\ggf.pwn(23948) : warning 215: expression has no effect
C:\Dokumente und Einstellungen\Jochen.JOCHENS-AMD64-\Eigene Dateien\Download\Script\Feat Los Santos\Momentanen Script\Gamemode\ggf.pwn(23948) : error 001: expected token: ";", but found "]"
C:\Dokumente und Einstellungen\Jochen.JOCHENS-AMD64-\Eigene Dateien\Download\Script\Feat Los Santos\Momentanen Script\Gamemode\ggf.pwn(23948) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Jochen.JOCHENS-AMD64-\Eigene Dateien\Download\Script\Feat Los Santos\Momentanen Script\Gamemode\ggf.pwn(23948) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Hoffe mal das ihr mir SCHNELL helfen könnt