Beiträge von EliteBread

    new JoinPed[105][1];
    {280}, // 0
    {281}, // LSPD 1
    {282}, // LSPD 2
    {283}, // LSPD 3
    {284}, // LSPD 4
    {285}, // LSPD 5
    {288}, // LSPD 6
    {71}, // LSPD 7
    {166}, // LSPD 8
    {148}, // LSPD 9
    {283}, // SFPD 10
    {280}, // SFPD 11
    {281}, // SFPD 12
    {148}, // SFPD 13
    {287}, // ARMY 14
    {285}, // ARMY 15
    {148}, // ARMY 16
    {70}, // MEDIC 17
    {274}, // MEDIC 18
    {276}, // MEDIC 19
    {127}, // LCN 20
    {126}, // LCN 21
    {125}, // LCN 22
    {124}, // LCN 23
    {113}, // LCN 24
    {111}, // LCN 25
    {98}, // LCN 26
    {93}, // LCN 27
    {120}, // YAKI 28
    {121}, // YAKI 29
    {122}, // YAKI 30
    {123}, // YAKI 31
    {186}, // YAKI 32
    {228}, // YAKI 33
    {169}, // YAKI 34
    {155}, // PRÄSI 35
    {193}, // PRÄSI 36
    {127}, // HITMAN 37
    {165}, // HITMAN 38
    {186}, // HITMAN 39
    {141}, // HITMAN 40
    {93}, // HITMAN 41
    {187}, // San-News 42
    {188}, // San-News 43
    {93}, // San-News 44
    {255}, // San-News 45
    {253}, // San-News 46
    {76}, // San-News 47
    {59}, // FAHRSCHULE 48
    {60}, // FAHRSCHULE 49
    {150}, // FAHRSCHULE 50
    {76}, // FAHRSCHULE 51
    {247}, // Biker 52
    {248}, // Biker 53
    {254}, // Biker 54
    {100}, // Biker 55
    {105}, // GROVE 56
    {106}, // GROVE 57
    {107}, // GROVE 58
    {269}, // GROVE 59
    {270}, // GROVE 60
    {271}, // GROVE 61
    {191}, // GROVE 62
    {102}, // BALLAS 63
    {195}, // BALLAS 64
    {104}, // BALLAS 65
    {193}, // BALLAS 66
    {185}, // FaF 67
    {23}, // FaF 68
    {50}, // FaF 69
    {193}, // FaF 70
    {192}, // FaF 71
    {108}, // VAGOS 72
    {109}, // VAGOS 73
    {110}, // VAGOS 74
    {226}, // VAGOS 75
    {114}, // SWAT 76
    {115}, // SWAT 77
    {116}, // SWAT 78
    {298}, // SWAT 79
    {173}, // RIFA 80
    {174}, // RIFA 81
    {175}, // RIFA 82
    {214}, // RIFA 83
    {223}, // WCC 84
    {234}, // WCC 85
    {250}, // WCC 86
    {7}, // WCC 87
    {93}, // WCC 88
    {280}, // FBI 89
    {284}, // FBI 90
    {285}, // FBI 91
    {286}, // FBI 92
    {148}, // FBI 93
    {277}, // FEUERWEHR 94
    {278}, // FEUERWEHR 95
    {279}, // FEUERWEHR 96
    {150}, //Grudweherdienst
    {285}, //Grudweherdienst
    {287}, //Grudweherdienst
    {255}, // OAMT 97
    {261}, // OAMT 98
    {76} // OAMT 99
    };


    C:\Users\FloCrow\Desktop\SAMP Server\gamemodes\GeG.pwn(2139) : error 055: start of function body without function header
    C:\Users\FloCrow\Desktop\SAMP Server\gamemodes\GeG.pwn(2242) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.



    Liebe Comunety
    Ich habe beim Compilen diese Problem aber keine ahnung wo darn das liegt :(


    new JoinPed[105][1] = {
    {280}, // 0
    {281}, // LSPD 1
    {282}, // LSPD 2
    {283}, // LSPD 3
    {284}, // LSPD 4
    {285}, // LSPD 5
    {288}, // LSPD 6
    {71}, // LSPD 7
    {166}, // LSPD 8
    {148}, // LSPD 9
    {283}, // SFPD 10
    {280}, // SFPD 11
    {281}, // SFPD 12
    {148}, // SFPD 13
    {287}, // ARMY 14
    {285}, // ARMY 15
    {148}, // ARMY 16
    {70}, // MEDIC 17
    {274}, // MEDIC 18
    {276}, // MEDIC 19
    {127}, // LCN 20
    {126}, // LCN 21
    {125}, // LCN 22
    {124}, // LCN 23
    {113}, // LCN 24
    {111}, // LCN 25
    {98}, // LCN 26
    {93}, // LCN 27
    {120}, // YAKI 28
    {121}, // YAKI 29
    {122}, // YAKI 30
    {123}, // YAKI 31
    {186}, // YAKI 32
    {228}, // YAKI 33
    {169}, // YAKI 34
    {155}, // PRÄSI 35
    {193}, // PRÄSI 36
    {127}, // HITMAN 37
    {165}, // HITMAN 38
    {186}, // HITMAN 39
    {141}, // HITMAN 40
    {93}, // HITMAN 41
    {187}, // San-News 42
    {188}, // San-News 43
    {93}, // San-News 44
    {255}, // San-News 45
    {253}, // San-News 46
    {76}, // San-News 47
    {59}, // FAHRSCHULE 48
    {60}, // FAHRSCHULE 49
    {150}, // FAHRSCHULE 50
    {76}, // FAHRSCHULE 51
    {247}, // Biker 52
    {248}, // Biker 53
    {254}, // Biker 54
    {100}, // Biker 55
    {105}, // GROVE 56
    {106}, // GROVE 57
    {107}, // GROVE 58
    {269}, // GROVE 59
    {270}, // GROVE 60
    {271}, // GROVE 61
    {191}, // GROVE 62
    {102}, // BALLAS 63
    {195}, // BALLAS 64
    {104}, // BALLAS 65
    {193}, // BALLAS 66
    {185}, // FaF 67
    {23}, // FaF 68
    {50}, // FaF 69
    {193}, // FaF 70
    {192}, // FaF 71
    {108}, // VAGOS 72
    {109}, // VAGOS 73
    {110}, // VAGOS 74
    {226}, // VAGOS 75
    {114}, // SWAT 76
    {115}, // SWAT 77
    {116}, // SWAT 78
    {298}, // SWAT 79
    {173}, // RIFA 80
    {174}, // RIFA 81
    {175}, // RIFA 82
    {214}, // RIFA 83
    {223}, // WCC 84
    {234}, // WCC 85
    {250}, // WCC 86
    {7}, // WCC 87
    {93}, // WCC 88
    {280}, // FBI 89
    {284}, // FBI 90
    {285}, // FBI 91
    {286}, // FBI 92
    {148}, // FBI 93
    {277}, // FEUERWEHR 94
    {278}, // FEUERWEHR 95
    {279}, // FEUERWEHR 96
    {150}, //Grudweherdienst
    {285}, //Grudweherdienst
    {287}, //Grudweherdienst
    {255}, // OAMT 97
    {261}, // OAMT 98
    {76} // OAMT 99
    };


    Das Error:
    C:\Users\FloCrow\Desktop\SAMP Server\gamemodes\GeG.pwn(2242) : error 052: multi-dimensional arrays must be fully initialized
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    new JoinPed[105][1] = {
    {280}, // 0
    {281}, // LSPD 1
    {282}, // LSPD 2
    {283}, // LSPD 3
    {284}, // LSPD 4
    {285}, // LSPD 5
    {288}, // LSPD 6
    {71}, // LSPD 7
    {166}, // LSPD 8
    {148}, // LSPD 9
    {283}, // SFPD 10
    {280}, // SFPD 11
    {281}, // SFPD 12
    {148}, // SFPD 13
    {287}, // ARMY 14
    {285}, // ARMY 15
    {148}, // ARMY 16
    {70}, // MEDIC 17
    {274}, // MEDIC 18
    {276}, // MEDIC 19
    {127}, // LCN 20
    {126}, // LCN 21
    {125}, // LCN 22
    {124}, // LCN 23
    {113}, // LCN 24
    {111}, // LCN 25
    {98}, // LCN 26
    {93}, // LCN 27
    {120}, // YAKI 28
    {121}, // YAKI 29
    {122}, // YAKI 30
    {123}, // YAKI 31
    {186}, // YAKI 32
    {228}, // YAKI 33
    {169}, // YAKI 34
    {155}, // PRÄSI 35
    {193}, // PRÄSI 36
    {127}, // HITMAN 37
    {165}, // HITMAN 38
    {186}, // HITMAN 39
    {141}, // HITMAN 40
    {93}, // HITMAN 41
    {187}, // San-News 42
    {188}, // San-News 43
    {93}, // San-News 44
    {255}, // San-News 45
    {253}, // San-News 46
    {76}, // San-News 47
    {59}, // FAHRSCHULE 48
    {60}, // FAHRSCHULE 49
    {150}, // FAHRSCHULE 50
    {76}, // FAHRSCHULE 51
    {247}, // Biker 52
    {248}, // Biker 53
    {254}, // Biker 54
    {100}, // Biker 55
    {105}, // GROVE 56
    {106}, // GROVE 57
    {107}, // GROVE 58
    {269}, // GROVE 59
    {270}, // GROVE 60
    {271}, // GROVE 61
    {191}, // GROVE 62
    {102}, // BALLAS 63
    {195}, // BALLAS 64
    {104}, // BALLAS 65
    {193}, // BALLAS 66
    {185}, // FaF 67
    {23}, // FaF 68
    {50}, // FaF 69
    {193}, // FaF 70
    {192}, // FaF 71
    {108}, // VAGOS 72
    {109}, // VAGOS 73
    {110}, // VAGOS 74
    {226}, // VAGOS 75
    {114}, // SWAT 76
    {115}, // SWAT 77
    {116}, // SWAT 78
    {298}, // SWAT 79
    {173}, // RIFA 80
    {174}, // RIFA 81
    {175}, // RIFA 82
    {214}, // RIFA 83
    {223}, // WCC 84
    {234}, // WCC 85
    {250}, // WCC 86
    {7}, // WCC 87
    {93}, // WCC 88
    {280}, // FBI 89
    {284}, // FBI 90
    {285}, // FBI 91
    {286}, // FBI 92
    {148}, // FBI 93
    {277}, // FEUERWEHR 94
    {278}, // FEUERWEHR 95
    {279}, // FEUERWEHR 96
    {255}, // OAMT 97
    {261}, // OAMT 98
    {76} // OAMT 99
    };


    C:\Users\FloCrow\Desktop\SAMP Server\gamemodes\GeG.pwn(2239) : error 052: multi-dimensional arrays must be fully initialized
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    Hallo user


    Ich suche ein befehl womit man user meines server für die eigegebene zeit in minuten geband wird und nach der abgelaufen zeit endband werden


    Der Befehl sollte lauten:
    /tban (id) (time (in minute))

    muss das raus kriegen


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    if(newkeys == 1)
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    new vid = GetPlayerVehicleID(playerid);
    if(licht[vid] == false)
    {
    GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
    licht[vid] = true;
    }
    else if(licht[vid] == true)
    {
    GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
    licht[vid] = false;
    }
    else
    {
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)return SendClientMessage(playerid,F_O,"Du bist nicht der faher");
    }
    }
    if(newkeys & KEY_FIRE)
    {


    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    }
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SendClientMessage(playerid,RED," Unterlasse bitte das Schlagen im Gefängnis!");
    FreezePlayer(playerid);
    }
    }
    if(newkeys & KEY_SUBMISSION)



    wegen


    C:\Users\FloCrow\Desktop\SAMP Server\gamemodes\GeG.pwn(5915) : error 017: undefined symbol "licht"
    C:\Users\FloCrow\Desktop\SAMP Server\gamemodes\GeG.pwn(5915) : warning 215: expression has no effect
    C:\Users\FloCrow\Desktop\SAMP Server\gamemodes\GeG.pwn(5915) : error 001: expected token: ";", but found "]"
    C:\Users\FloCrow\Desktop\SAMP Server\gamemodes\GeG.pwn(5915) : error 029: invalid expression, assumed zero
    C:\Users\FloCrow\Desktop\SAMP Server\gamemodes\GeG.pwn(5915) : 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.

    //Blaulicht system by Markus_Bergman
    new Sirene[MAX_VEHICLES];
    //Motor system by Markus_Bergman
    new bool:enginebool[MAX_VEHICLES] = false;
    new bool:licht[MAX_VEHICLES];[pwn]


    //Für motor/licht system by Markus
    stock sscanf(string[], format[], {Float,_}:...)
    {
    #if defined isnull
    if (isnull(string))
    #else
    if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
    #endif
    {
    return format[0];
    }
    #pragma tabsize 4
    new
    formatPos = 0,
    stringPos = 0,
    paramPos = 2,
    paramCount = numargs(),
    delim = ' ';
    while (string[stringPos] && string[stringPos] <= ' ')
    {
    stringPos++;
    }
    while (paramPos < paramCount && string[stringPos])
    {
    switch (format[formatPos++])
    {
    case '\0':
    {
    return 0;
    }
    case 'i', 'd':
    {
    new
    neg = 1,
    num = 0,
    ch = string[stringPos];
    if (ch == '-')
    {
    neg = -1;
    ch = string[++stringPos];
    }
    do
    {
    stringPos++;
    if ('0' <= ch <= '9')
    {
    num = (num * 10) + (ch - '0');
    }
    else
    {
    return -1;
    }
    }
    while ((ch = string[stringPos]) > ' ' && ch != delim);
    setarg(paramPos, 0, num * neg);
    }
    case 'h', 'x':
    {
    new
    num = 0,
    ch = string[stringPos];
    do
    {
    stringPos++;
    switch (ch)
    {
    case 'x', 'X':
    {
    num = 0;
    continue;
    }
    case '0' .. '9':
    {
    num = (num << 4) | (ch - '0');
    }
    case 'a' .. 'f':
    {
    num = (num << 4) | (ch - ('a' - 10));
    }
    case 'A' .. 'F':
    {
    num = (num << 4) | (ch - ('A' - 10));
    }
    default:
    {
    return -1;
    }
    }
    }
    while ((ch = string[stringPos]) > ' ' && ch != delim);
    setarg(paramPos, 0, num);
    }
    case 'c':
    {
    setarg(paramPos, 0, string[stringPos++]);
    }
    case 'f':
    {


    new changestr[16], changepos = 0, strpos = stringPos;
    while(changepos < 16 && string[strpos] && string[strpos] != delim)
    {
    changestr[changepos++] = string[strpos++];
    }
    changestr[changepos] = '\0';
    setarg(paramPos,0,_:floatstr(changestr));
    }
    case 'p':
    {
    delim = format[formatPos++];
    continue;
    }
    case '\'':
    {
    new
    end = formatPos - 1,
    ch;
    while ((ch = format[++end]) && ch != '\'') {}
    if (!ch)
    {
    return -1;
    }
    format[end] = '\0';
    if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
    {
    if (format[end + 1])
    {
    return -1;
    }
    return 0;
    }
    format[end] = '\'';
    stringPos = ch + (end - formatPos);
    formatPos = end + 1;
    }
    case 'u':
    {
    new
    end = stringPos - 1,
    id = 0,
    bool:num = true,
    ch;
    while ((ch = string[++end]) && ch != delim)
    {
    if (num)
    {
    if ('0' <= ch <= '9')
    {
    id = (id * 10) + (ch - '0');
    }
    else
    {
    num = false;
    }
    }
    }
    if (num && IsPlayerConnected(id))
    {
    setarg(paramPos, 0, id);
    }
    else
    {
    #if !defined foreach
    #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
    #define __SSCANF_FOREACH__
    #endif
    string[end] = '\0';
    num = false;
    new
    name[MAX_PLAYER_NAME];
    id = end - stringPos;
    foreach (Player, playerid)
    {
    GetPlayerName(playerid, name, sizeof (name));
    if (!strcmp(name, string[stringPos], true, id))
    {
    setarg(paramPos, 0, playerid);
    num = true;
    break;
    }
    }
    if (!num)
    {
    setarg(paramPos, 0, INVALID_PLAYER_ID);
    }
    string[end] = ch;
    #if defined __SSCANF_FOREACH__
    #undef foreach
    #undef __SSCANF_FOREACH__
    #endif
    }
    stringPos = end;
    }
    case 's', 'z':
    {
    new
    i = 0,
    ch;
    if (format[formatPos])
    {
    while ((ch = string[stringPos++]) && ch != delim)
    {
    setarg(paramPos, i++, ch);
    }
    if (!i)
    {
    return -1;
    }
    }
    else
    {
    while ((ch = string[stringPos++]))
    {
    setarg(paramPos, i++, ch);
    }
    }
    stringPos--;
    setarg(paramPos, i, '\0');
    }
    default:
    {
    continue;
    }
    }
    while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
    {
    stringPos++;
    }
    while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
    {
    stringPos++;
    }
    paramPos++;
    }
    do
    {
    if ((delim = format[formatPos++]) > ' ')
    {
    if (delim == '\'')
    {
    while ((delim = format[formatPos++]) && delim != '\'') {}
    }
    else if (delim != 'z')
    {
    return delim;
    }
    }
    }
    while (delim > ' ');
    return 0;
    }
    stock right(source[], len)
    {
    new retval[MAX_STRING], srclen;
    srclen = strlen(source);
    strmid(retval, source, srclen - len, srclen, MAX_STRING);
    return retval;
    }[/pwn]

    Habe ein Probelm habe zwei sachen im script ein mal ein/licht (an/aus) was ich gerne anders habe will mit nur einbefehel mit /licht nur
    2. probelm habe das selbe im Blaulicht für den Cheetah da gibt den befel /san und /saus aber ic will den gerne auf /blicht kann mal jemand bitte kucken