Problem bei Skins im GF

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
  • Hallo liebe breadfisher habe nur ein Error und warnings auch abe rmöchte erstmal den error weghaben....der ist in folgender


    Zeile:


    new JoinPed[57][1] = {
    {280},//POLICE_FORCE
    {281},
    {282},
    {283},
    {71},//BIS HIER POLICE
    {295},//FBI
    {284},
    {164},
    {163},
    {285},//FBI BIS HIERHIN
    {287},//NATIONAL_GUARD
    {70},//MEDIC
    {274},
    {275},
    {276},
    {277},
    {278},
    {279},//BIS HIERHIN MEDIC
    {105},//GS
    {106},
    {107},
    {269},
    {270},//BIS HIERHIN GS
    {108},//SAJUS
    {109},
    {110},//BIS HIERHIN SAJUS
    {95},//HITMAN
    {166},
    {165},
    {127},
    {194},//BIS HIERHIN HITMAN
    {141},//NR
    {148},
    {188},
    {187},//BIS HIERHIN NR
    {255},//TAXI
    {253},//BIS HIERHIN TAXI
    {172},//FAHRSCHULE
    {194},
    {59},
    {60},
    {150},//BIS HIERHIN FAHRSCHULE
    {258},//LA COSA NOSTRA
    {127},
    {126},
    {125},
    {124},
    {113},
    {111},
    {98},//BIS HIERHIN LA COSA NOSTRA
    {120},//YAKUZA
    {121},
    {122},
    {123},
    {169},
    {186} //BIS HIERHIN YAKUZA
    };//Der Error soll in dieser Zeile sein..



    und die Beschreibung dews errors:


    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(1143) : error 052: multi-dimensional arrays must be fully initialized

  • dann habe ich 2 errors:


    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(26149) : error 032: array index out of bounds (variable "JoinPed")
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(26149) : error 032: array index out of bounds (variable "JoinPed")



    Zeilen dazu


    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[56][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[56][0]; }

  • all oder nur die von der letzen Zeile also 56





  • case 1: //Police Force
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[0][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[1][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[2][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[3][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[4][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[5][0]; }
    }


    case 2: //FBI/ATF
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[6][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[6][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[7][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[7][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[8][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[8][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[9][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[9][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[10][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[10][0]; }
    }




    case 3: //National Guard
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[11][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[11][0]; }

    }
    case 4: //Fire&Ambulance
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[12][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[12][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[13][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[13][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[14][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[14][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[15][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[15][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[16][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[16][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[17][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[17][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[18][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[18][0]; }
    }


    case 5: //GS
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[19][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[19][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[20][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[20][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[21][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[21][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[22][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[22][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[23][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[23][0]; }


    }
    case 6: //SAJUS
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[24][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[24][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[25][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[25][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[26][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[26][0]; }
    }


    case 7: //HITMAN
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[27][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[27][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[28][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[28][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[29][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[29][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[30][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[30][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[31][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[31][0]; }



    }
    case 8: //NR
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[32][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[32][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[33][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[33][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[34][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[34][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[35][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[35][0]; }
    }
    case 9: //TAXI
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[36][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[36][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[37][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[37][0]; }

    }
    case 10: //FAHRSCHULE
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[38][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[39][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[39][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[39][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[40][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[40][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[41][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[41][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[42][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[42][0]; }
    }
    case 11: //LCN
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[43][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[43][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[44][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[44][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[45][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[45][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[46][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[46][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[47][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[47][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[48][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[48][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[49][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[49][0]; }
    else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, JoinPed[50][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[50][0]; }
    }


    case 12: //YAKUZA
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[51][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[51][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[52][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[52][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[53][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[53][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[54][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[54][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[55][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[55][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[56][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[56][0]; }


    }
    }[/pwn]

    Einmal editiert, zuletzt von milanboy38 ()

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • der der oben steht


    Hier die warnings:


    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(40) : warning 201: redefinition of constant/macro (symbol "COLOR_WHITE")


    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(1600) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(1608) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(1609) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(1613) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(3913) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(3922) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(3933) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(5824) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6719) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6735) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6754) : warning 202: number of arguments does not match definition
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6755) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6755) : warning 202: number of arguments does not match definition
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6756) : warning 202: number of arguments does not match definition
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6757) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6757) : warning 202: number of arguments does not match definition
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6758) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6758) : warning 202: number of arguments does not match definition
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6759) : warning 202: number of arguments does not match definition
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6760) : warning 202: number of arguments does not match definition
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6761) : warning 202: number of arguments does not match definition
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6771) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6816) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(6891) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(10196) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(10239) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(10253) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(10268) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(10293) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(24469) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(25068) : warning 213: tag mismatch
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(25068) : warning 202: number of arguments does not match definition
    C:\Dokumente und Einstellungen\Nunzio Tuccio\Desktop\samp03asvr_R7_win32\gamemodes\gf.pwn(25068) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.