Sers, ich habe problem ich habe Klammer fehler nun raus habe folgendes problem:
C:\Users\Manuel\Desktop\SWRP.pwn(8620) : error 029: invalid expression, assumed zero
C:\Users\Manuel\Desktop\SWRP.pwn(8620) : warning 215: expression has no effect
C:\Users\Manuel\Desktop\SWRP.pwn(8620) : error 001: expected token: ";", but found "if"
C:\Users\Manuel\Desktop\SWRP.pwn(8652) : error 029: invalid expression, assumed zero
C:\Users\Manuel\Desktop\SWRP.pwn(8657) : warning 225: unreachable code
C:\Users\Manuel\Desktop\SWRP.pwn(8657) : error 029: invalid expression, assumed zero
C:\Users\Manuel\Desktop\SWRP.pwn(8657) : warning 215: expression has no effect
C:\Users\Manuel\Desktop\SWRP.pwn(8657) : error 001: expected token: ";", but found "if"
C:\Users\Manuel\Desktop\SWRP.pwn(8695) : error 029: invalid expression, assumed zero
C:\Users\Manuel\Desktop\SWRP.pwn(8699) : warning 225: unreachable code
C:\Users\Manuel\Desktop\SWRP.pwn(8699) : error 029: invalid expression, assumed zero
C:\Users\Manuel\Desktop\SWRP.pwn(8699) : warning 215: expression has no effect
C:\Users\Manuel\Desktop\SWRP.pwn(8699) : error 001: expected token: ";", but found "if"
C:\Users\Manuel\Desktop\SWRP.pwn(8732) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.
Alles anzeigen
if(strcmp(cmd, "/take", true) == 0)
{
new x_nr[128];
x_nr = strtok(cmdtext, idx);
if(Gduty[playerid] != 1){
SendClientMessage(playerid, COLOR_GREY, " Du musst im Dienst sein!");
return 1;
}
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 1 || PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 2 || PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 3)
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_WHITE, "|__________________ Take Scheine __________________|");
SendClientMessage(playerid, COLOR_WHITE, "Benutze: /take [Lizensname] [Name oder ID]");
SendClientMessage(playerid, COLOR_GREY, " Namen: autoschein , waffenschein , angelschein , drogen , mats");
SendClientMessage(playerid, COLOR_WHITE, "|___________________________________________________|");
return 1;
}
if(strcmp(x_nr,"autoschein",true) == 0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Benutze: /take autoschein [ID]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid)){
if(giveplayerid != INVALID_PLAYER_ID){
if (ProxDetectorS(8.0, playerid, giveplayerid)){
format(string, sizeof(string), "* Du nimmst %s den Führerschein.", PlayerName(giveplayerid));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s hat dir deinen Führerschein entzogen.", PlayerName(playerid));
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pCarlic] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist nicht bei dir !");
return 1;
}
}
}
else{
SendClientMessage(playerid, COLOR_GREY, " Spieler wurde nicht Gefunden !");
return 1;
}
}
else if(strcmp(x_nr,"waffenschein",true) == 0){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Benutze: /take waffenschein [Name oder ID]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid)){
if(giveplayerid != INVALID_PLAYER_ID){
if (ProxDetectorS(8.0, playerid, giveplayerid)){
format(string, sizeof(string), "* Du nimmst %s den Waffenschein.", PlayerName(giveplayerid));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s hat deinen waffenschein abgenommen.", PlayerName(playerid));
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pWeaplic] = 0;
}
else{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist nicht bei dir !");
return 1;
}
}
}
else{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist Offline !");
return 1;
}
}
else{
SendClientMessage(playerid, COLOR_GREY, "Unbekannter Lizensname");
return 1;
}
else if(strcmp(x_nr,"angelschein",true) == 0){ // Zeile 8620
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Benutze: /take angelschein [Name oder ID]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid)){
if(giveplayerid != INVALID_PLAYER_ID){
if (ProxDetectorS(8.0, playerid, giveplayerid)){
format(string, sizeof(string), "* Du nimmst %s den angelschein.", PlayerName(giveplayerid));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s hat deinen angelschein abgenommen.", PlayerName(playerid));
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pFishlic] = 0;
}
else{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist nicht bei dir !");
return 1;
}
}
}
else{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist Offline !");
return 1;
}
}
else{
SendClientMessage(playerid, COLOR_GREY, "Unbekannter Lizensname");
return 1;
}
else{ // 8652
SendClientMessage(playerid, COLOR_GREY, "Du bist kein Polizist/Bundeswehrsoldat/FBI");
return 1;
}
else if(strcmp(x_nr,"drogen",true) == 0){ // 8657
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Benutze: /take drogen [Name oder ID]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid)){
if(giveplayerid != INVALID_PLAYER_ID){
if (ProxDetectorS(8.0, playerid, giveplayerid)){
format(string, sizeof(string), "* Du nimmst %s die Drogen & Drogensamen ab.", PlayerName(giveplayerid));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s hat deine Drogen & Drogensamen abgenommen.", PlayerName(playerid));
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pWeedSeeds] = 0;
PlayerInfo[giveplayerid][pWeed] = 0;
PlayerInfo[giveplayerid][pCokeSeeds] = 0;
PlayerInfo[giveplayerid][pCoke] = 0;
PlayerInfo[giveplayerid][pShroomSeeds] = 0;
PlayerInfo[giveplayerid][pShrooms] = 0;
PlayerInfo[giveplayerid][pLSD] = 0;
}
else{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist nicht bei dir !");
return 1;
}
}
}
else{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist Offline !");
return 1;
}
}
else{
SendClientMessage(playerid, COLOR_GREY, "Unbekannter Lizensname");
return 1;
}
else{ // 8695
SendClientMessage(playerid, COLOR_GREY, "Du bist kein Polizist/Bundeswehrsoldat/FBI");
return 1;
}
else if(strcmp(x_nr,"mats",true) == 0){ // 8699
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Benutze: /take mats [Name oder ID]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid)){
if(giveplayerid != INVALID_PLAYER_ID){
if (ProxDetectorS(8.0, playerid, giveplayerid)){
format(string, sizeof(string), "* Du nimmst %s den mats.", PlayerName(giveplayerid));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s hat deinen mats abgenommen.", PlayerName(playerid));
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pMats] = 0;
PlayerInfo[giveplayerid][pBombMats] = 0;
}
else{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist nicht bei dir !");
return 1;
}
}
}
else{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist Offline !");
return 1;
}
}
else{
SendClientMessage(playerid, COLOR_GREY, "Unbekannter Lizensname");
return 1;
}
}
return 1;
}