M_Bot Problem x.x (Los Angeles v1.0 Script)

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hier hab mal ein Problem mit dem M_Bot und verstehe nicht warum:



    M_Bot:




    C:\Users\Vladi\Desktop\LOSANG~1\pawno\include\M_Bot.inc(494) : error 027: invalid character constant
    C:\Users\Vladi\Desktop\LOSANG~1\pawno\include\M_Bot.inc(494) : warning 215: expression has no effect
    C:\Users\Vladi\Desktop\LOSANG~1\pawno\include\M_Bot.inc(494) : error 001: expected token: ";", but found ")"
    C:\Users\Vladi\Desktop\LOSANG~1\pawno\include\M_Bot.inc(494) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\LOSANG~1\pawno\include\M_Bot.inc(494) : 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.


    ///////////Ausschnitt////////////


    new File:BLACKLISTFILE = fopen("/M_Bot/M_Black.cfg", io_read); //Zeile 485
    if(BLACKLISTFILE)
    {
    while(fread(BLACKLISTFILE,read))
    {
    for(new x=0; x<strlen(read); x++)
    {
    if(read[x] == 'n')
    {
    read[x] = ' //Zeile 949

  • read[x] = ' //Zeile 949
    Das ist niemals die Komplette Zeile bzw so ist sie fehlerhaft.
    Dort müsstest so etwas stehen:
    read[x] = '\0';
    read[x] = 'a';
    Hab mal gegooglet und folgendes gefunden:
    new File:BLACKLISTFILE = fopen("/M_Bot/M_Black.cfg", io_read);
    if(BLACKLISTFILE)
    {
    while(fread(BLACKLISTFILE,read))
    {
    for(new x=0; x<strlen(read); x++)
    {
    if(read[x] == '\n')
    {
    read[x] = '\0';
    }
    }
    if(!strcmp(read,playerip,false,TwoNumbersLength) || !strcmp(read,playerip,false))
    {
    fclose(BLACKLISTFILE);
    return 1;
    }
    }
    }

    Quelle: http://pastebin.com/VbXD2zKa

  • Nun is bei mir ein Klammerfehler Ö.ö




    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(38876) : warning 208: function with tag result used before definition, forcing reparse
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(38889) : warning 208: function with tag result used before definition, forcing reparse
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(38916) : warning 208: function with tag result used before definition, forcing reparse
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(38939) : warning 208: function with tag result used before definition, forcing reparse
    C:\Users\Vladi\Desktop\LOSANG~1\pawno\include\M_Bot.inc(485) : warning 217: loose indentation
    C:\Users\Vladi\Desktop\LOSANG~1\pawno\include\M_Bot.inc(500) : error 079: inconsistent return types (array & non-array)
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(92) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(92) : error 017: undefined symbol "IsAtEatATM"
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(93) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(93) : error 017: undefined symbol "IsAtATM"
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(179) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(179) : error 017: undefined symbol "IsAHitmanCar"
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(180) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(180) : error 017: undefined symbol "IsAMullCar"
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(181) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(181) : error 017: undefined symbol "SaveAccounts"
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(182) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(182) : error 017: undefined symbol "oid"
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(183) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(183) : error 017: undefined symbol "oid"
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(185) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(185) : error 017: undefined symbol "HandyVer"
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(186) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(186) : error 017: undefined symbol "HartzIV"
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(187) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(187) : error 017: undefined symbol "Hotel"
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(188) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(189) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(190) : error 029: invalid expression, assumed zero
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(190) : error 017: undefined symbol "AddToBizzTill"
    C:\Users\Vladi\Desktop\Los Angeles Reallife\gamemodes\LosAngelesReallife.pwn(191) : error 029: invalid expression, assumed zero


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.


    M_Bot ist der Ausschnitt von dir und im Script: sind nur defines dooch ich weis vlt wo der fehler ist... hab bei mir alle gang fraktionen gestockt und vlt liegt dort der fehler ?





    stock PlayerInFrak(id) //Alle Gang Fraks { if(PlayerInfo[id][pLeader]==5 || PlayerInfo[id][pLeader]==6 || PlayerInfo[id][pLeader]==8 || PlayerInfo[id][pLeader]==13 ||) if(PlayerInfo[id][pMember]==5 || PlayerInfo[id][pMember]==6 || PlayerInfo[id][pMember]==8 || PlayerInfo[id][pMember]==13 ||) if(PlayerInfo[id][pLeader]==14 || PlayerInfo[id][pLeader]==15 || PlayerInfo[id][pLeader]==16 || PlayerInfo[id][pLeader]==17 ||) if(PlayerInfo[id][pMember]==14 || PlayerInfo[id][pMember]==15 || PlayerInfo[id][pMember]==16 || PlayerInfo[id][pMember]==17 ||) if(PlayerInfo[id][pLeader]==18 || PlayerInfo[id][pLeader]==19 || PlayerInfo[id][pLeader]==20 ||) if(PlayerInfo[id][pMember]==18 || PlayerInfo[id][pMember]==19 || PlayerInfo[id][pMember]==20 ||)
    }





    Einmal editiert, zuletzt von Tro53Vladi ()