Beiträge von Anonymous

    hey ich benutze das Donate System Klick Hier aber wenn ich es compeliere kommt der Error



    C:\Dokumente und Einstellungen\Rene\Desktop\asd\filterscripts\new.pwn(38) : warning 217: loose indentation
    C:\Dokumente und Einstellungen\Rene\Desktop\asd\filterscripts\new.pwn(38) : error 017: undefined symbol "PlayerInfo"
    C:\Dokumente und Einstellungen\Rene\Desktop\asd\filterscripts\new.pwn(38) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\Rene\Desktop\asd\filterscripts\new.pwn(38) : error 001: expected token: ";", but found "]"
    C:\Dokumente und Einstellungen\Rene\Desktop\asdy\filterscripts\new.pwn(38) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\Rene\Desktop\asd\filterscripts\new.pwn(38) : 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.

    zeilen tuhe gleich den ganzen public rein:
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == 1)
    {
    new donate;
    new file = ini_openFile("donate.ini");
    if(ini_getInteger(file, inputtext, donate) == 0)
    {
    if(donate == 1) // FIND (NOT MONEY) (DONATERANK)
    {
    SendClientMessage(playerid,-1,"VIP Account activated");
    PlayerInfo[playerid][pDonateRank] = 1;
    return 1;
    }
    if(donate == 2) // FIND (NOT MONEY) (LEVEL)
    {
    SendClientMessage(playerid,-1,"Level UP to 1 point");
    PlayerInfo[playerid][pLevel] += 1;
    return 1;
    }
    if(donate == 3)
    {
    SendClientMessage(playerid,-1,"Phone Number changed for 4 symbols");
    new randphone = 1000 + random(9999);//minimum 1000 max 9999 //giving one at the start
    PlayerInfo[playerid][pPnumber] = randphone;
    return 1;
    }
    GivePlayerMoney(playerid,donate);
    ini_removeKey(file,inputtext);
    SendClientMessage(playerid,-1,"Thank's for donate");
    }
    else
    {
    SendClientMessage(playerid,-1,"Wrong Code");
    }
    iniClose(file);
    }
    return 1;
    }


    edit: habs selber herausgefunden, aber jetzt habe die errors

    geh auf youtube und gib ein gta sa download ist gerade das einfachste was ich weiß weil man muss es ja normal kaufen :D und hier darf man glaube keine illigalen downloads geben

    hier der ganze public:
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == 1)
    {
    new PlayerInfo;
    new donate;
    new file = ini_openFile("donate.ini");
    if(ini_getInteger(file, inputtext, donate) == 0)
    {
    if(donate == 1) // FIND (NOT MONEY) (DONATERANK)
    {
    SendClientMessage(playerid,-1,"VIP Account activated");
    PlayerInfo[playerid][pDonateRank] = 1;
    return 1;
    }
    if(donate == 2) // FIND (NOT MONEY) (LEVEL)
    {
    SendClientMessage(playerid,-1,"Level UP to 1 point");
    PlayerInfo[playerid][pLevel] += 1;
    return 1;
    }
    if(donate == 3)
    {
    SendClientMessage(playerid,-1,"Phone Number changed for 4 symbols");
    new randphone = 1000 + random(9999);//minimum 1000 max 9999 //giving one at the start
    PlayerInfo[playerid][pPnumber] = randphone;
    return 1;
    }
    GivePlayerMoney(playerid,donate);
    ini_removeKey(file,inputtext);
    SendClientMessage(playerid,-1,"Thank's for donate");
    }
    else
    {
    SendClientMessage(playerid,-1,"Wrong Code");
    }
    iniClose(file);
    }
    return 1;
    }

    ähm eins vllt noch gehört hier vllt nicht rein ich weiß aber dann brauche ich nicht noch ein neuen thread machen
    habe folgende errors:
    C:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity\filterscripts\new.pwn(52) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"
    C:\Dokumente und Einstellungen\Rene\Desktop\asd\filterscripts\new.pwn(52) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\Rene\Desktop\asd\filterscripts\new.pwn(52) : error 001: expected token: ";", but found "]"
    C:\Dokumente und Einstellungen\Rene\Desktop\asd\filterscripts\new.pwn(52) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\Rene\Desktop\asd\filterscripts\new.pwn(52) : 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.


    hier die zeilePlayerInfo[playerid][pDonateRank] = 1;

    hey mal eine frage weiß einer wo man den Include für den pawno order runterladen kann und zwar den hier "mxini"?
    falsch ich ihn falschen bereicht bin dann verschieben bitte

    Ich wollte mal nach fragen wie man ein Automatischen Server Restart machen kann das der z.B. um 3uhr in der nacht kurtz ist und dann wieder hochfährt also so gesagt wie ein GMX , ich weiß aber leider nicht was das für ein server ist den ich habe es ist ein gameserver von Sponsoring4All.

    new:new wLS;
    new wSF;
    new wLV;
    if(dialogid == 4451)
    {
    if(!response) return 1;
    switch(listitem)
    {
    case 0:
    {
    format(string, sizeof(string), "Los Santos \nSan Fierro \nLas Venturas");
    ShowPlayerDialog(playerid, 4452, DIALOG_STYLE_LIST, "Wetter - Sonne", string, "Auswählen", "Abbrechen");
    return 1;
    }
    case 1:
    {//rain
    format(string, sizeof(string), "Los Santos \nSan Fierro \nLas Venturas");
    ShowPlayerDialog(playerid, 4453, DIALOG_STYLE_LIST, "Wetter - Sonne", string, "Auswählen", "Abbrechen");
    return 1;
    }
    case 2:
    {//Fog
    format(string, sizeof(string), "Los Santos \nSan Fierro \nLas Venturas");
    ShowPlayerDialog(playerid, 4454, DIALOG_STYLE_LIST, "Wetter - Sonne", string, "Auswählen", "Abbrechen");
    return 1;
    }
    default: SendClientMessage(playerid, COLOR_GRAD2, "Error.");
    }
    }
    if(dialogid == 4454)
    {
    if(!response) return 1;
    switch(listitem)
    {
    case 0:
    {
    wLS = 9;
    return 1;
    }
    case 1:
    {//rain
    wSF = 9;
    return 1;
    }
    case 2:
    {//Fog
    wLV = 9;
    return 1;
    }
    default: SendClientMessage(playerid, COLOR_GRAD2, "Error.");
    }
    }
    if(dialogid == 4453)
    {
    if(!response) return 1;
    switch(listitem)
    {
    case 0:
    {
    wLS = 16;
    return 1;
    }
    case 1:
    {//rain
    wSF = 16;
    return 1;
    }
    case 2:
    {//Fog
    wLV = 16;
    return 1;
    }
    default: SendClientMessage(playerid, COLOR_GRAD2, "Error.");
    }
    }
    if(dialogid == 4452)
    {
    if(!response) return 1;
    switch(listitem)
    {
    case 0:
    {
    wLS = 1;
    return 1;
    }
    case 1:
    {//rain
    wSF = 1;
    return 1;
    }
    case 2:
    {//Fog
    wLV = 1;
    return 1;
    }
    default: SendClientMessage(playerid, COLOR_GRAD2, "Error.");
    }
    }
    new w = GetPlayerWeatherCity(i);
    if(w==2) {if(PlayerInfo[i][pJailed] != 4){SetPlayerWeather(i, wLS); }}
    else if(w==3){if(PlayerInfo[i][pJailed] != 4){SetPlayerWeather(i, wLV);}}
    else if(w==4){if(PlayerInfo[i][pJailed] != 4){SetPlayerWeather(i, wSF);}}
    else {if(PlayerInfo[i][pJailed] != 4) {SetPlayerWeather(i, 1); }}
    if(!IsPlayerInAnyVehicle(i))
    {
    if(speedcount[i] > 0)
    {
    speedcount[i] = 0;
    }
    }
    public LoadStuff()
    {
    new arrCoords[11][64];
    new strFromFile2[256];
    new File: file = fopen("stuff.jy", io_read);
    if (file)
    {
    fread(file, strFromFile2);
    split(strFromFile2, arrCoords, ',');
    Jackpot = strval(arrCoords[0]);
    Tax = strval(arrCoords[1]);
    TaxValue = strval(arrCoords[2]);
    Security = strval(arrCoords[3]);
    wLS = strval(arrCoords[4]);
    wSF = strval(arrCoords[5]);
    wLV = strval(arrCoords[6]);
    GangZones[0] = strval(arrCoords[7]);
    GangZones[1] = strval(arrCoords[8]);
    GangZones[2] = strval(arrCoords[9]);
    GangZones[3] = strval(arrCoords[10]);
    //House_Index = strval(arrCoords[4]);
    printf("** Stuff loaded Weather_LS: %d, Weather_SF: %d, Weather_LV: %d",wLS,wSF,wLV);
    fclose(file);
    if(Security == 0 || Security == 1)
    {
    }
    else
    {
    GameModeExit();
    }
    }
    else
    {
    GameModeExit();
    }
    return 1;
    }

    public SaveStuff()
    {
    new coordsstring[256];
    format(coordsstring, sizeof(coordsstring), "$%d,$%d,$%d,%d,%d,%d,%d,%d,%d,%d,%d", Jackpot,Tax,TaxValue,Security,wLS,wSF,wLV,GangZones[0],GangZones[1],GangZones[2],GangZones[3]);
    new File: file2 = fopen("stuff.jy", io_write);
    fwrite(file2, coordsstring);
    fclose(file2);
    return 1;
    }
    if(strcmp(cmd, "/getweather", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] < 1337)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Du bist nicht berechtigt, diesen Befehl zu benutzen !");
    return 1;
    }
    format(string, sizeof(string), "Los Santos: %d, San Fierro: %d, Las Venturas: %d",wLS,wSF,wLV);
    SendClientMessage(playerid, COLOR_GRAD2, string);
    return 1;
    }
    return 1;
    }
    new SunnyWeather[11] = {1,2,3,4,5,6,7,9,10,11,14},
    GettingBadWeather[7] = {8,30,31,38,39,9,32},
    BadWeather[2] = {16,32},
    MorningWeather[4] = { 46, 47, 48, 49};
    public CreateWeather()
    {
    new hour, minute, second;
    gettime(hour, minute, second);
    printf("Weather Change");
    printf(" LS: %d, SF: %d, LV: %d",wLS,wSF,wLV);
    if(hour != 6 || hour != 7 || hour != 8)
    {
    if(wLS == 1 || wSF == 37 || wLV == 19)
    {
    wLS = SunnyWeather[random(sizeof(SunnyWeather))];
    wSF = SunnyWeather[random(sizeof(SunnyWeather))];
    wLV = SunnyWeather[random(sizeof(SunnyWeather))];
    printf("%d, %d, %d",wLS,wSF,wLV);
    }
    if(wLS >= 1 && wLS <= 7 || wSF >= 1 && wSF <= 7 || wLV >= 1 && wLV <= 7)
    {
    wLS = GettingBadWeather[random(sizeof(GettingBadWeather))];
    wSF = GettingBadWeather[random(sizeof(GettingBadWeather))];
    wLV = GettingBadWeather[random(sizeof(GettingBadWeather))];
    }
    if(wLS == 8 || wLS == 30 || wLS == 31 || wLS == 38 || wLS == 39
    || wLS == 4 || wLS == 16
    || wSF == 8 || wSF == 30 || wSF == 31 || wSF == 38 || wSF == 39
    || wSF == 4 || wSF == 16
    || wLV == 8 || wLV == 30 || wLV == 31 || wLV == 38 || wLV == 39
    || wLV == 4 || wLV == 16)
    {
    new rand = random(6);
    if(rand == 0 || rand == 3)
    {
    wLS = BadWeather[random(sizeof(BadWeather))];
    wSF = BadWeather[random(sizeof(BadWeather))];
    wLV = BadWeather[random(sizeof(BadWeather))];
    }
    else
    {
    wLS = SunnyWeather[random(sizeof(SunnyWeather))];
    wSF = SunnyWeather[random(sizeof(SunnyWeather))];
    wLV = SunnyWeather[random(sizeof(SunnyWeather))];
    }
    }
    }
    else
    {
    wLS = MorningWeather[random(sizeof(MorningWeather))];
    wSF = MorningWeather[random(sizeof(MorningWeather))];
    wLV = MorningWeather[random(sizeof(MorningWeather))];
    }
    SaveStuff();
    return 1;
    }

    GetWeather ist nur als Befehl: if(strcmp(cmd, "/getweather", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] < 1337)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Du bist nicht berechtigt, diesen Befehl zu benutzen !");
    return 1;
    }
    format(string, sizeof(string), "Los Santos: %d, San Fierro: %d, Las Venturas: %d",wLS,wSF,wLV);
    SendClientMessage(playerid, COLOR_GRAD2, string);
    return 1;
    }
    return 1;
    }
    und SetWeather gibts nciht

    Hey, ich habe ein problem und zwar wenn /rcon weather[zahl] eingebe ändert das wetter zwar aber springt sofort wieder um auf das normale.
    Wie kann ich das wegmachen!?

    Aber dann gehen die Neons nicht.


    bsp. neon script



    D:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity2\filterscripts\neomke.pwn(202) : error 017: undefined symbol "AttachObjectToVehicle"
    D:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity2\filterscripts\neomke.pwn(203) : error 017: undefined symbol "AttachObjectToVehicle"
    D:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity2\filterscripts\neomke.pwn(215) : error 017: undefined symbol "AttachObjectToVehicle"
    D:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity2\filterscripts\neomke.pwn(216) : error 017: undefined symbol "AttachObjectToVehicle"
    D:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity2\filterscripts\neomke.pwn(228) : error 017: undefined symbol "AttachObjectToVehicle"
    D:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity2\filterscripts\neomke.pwn(229) : error 017: undefined symbol "AttachObjectToVehicle"
    D:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity2\filterscripts\neomke.pwn(240) : error 017: undefined symbol "AttachObjectToVehicle"
    D:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity2\filterscripts\neomke.pwn(241) : error 017: undefined symbol "AttachObjectToVehicle"
    D:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity2\filterscripts\neomke.pwn(253) : error 017: undefined symbol "AttachObjectToVehicle"
    D:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity2\filterscripts\neomke.pwn(254) : error 017: undefined symbol "AttachObjectToVehicle"
    D:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity2\filterscripts\neomke.pwn(265) : error 017: undefined symbol "AttachObjectToVehicle"
    D:\Dokumente und Einstellungen\Rene\Desktop\SunLightCity2\filterscripts\neomke.pwn(266) : error 017: undefined symbol "AttachObjectToVehicle"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    12 Errors.


    //plava
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon add-ed!");
    GivePlayerMoney(playerid,-50);
    }
    if(listitem == 1)
    {



    //crvena
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon add-ed!");
    GivePlayerMoney(playerid,-50);
    }
    if(listitem == 2)
    {



    //zelena
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon add-ed!");
    GivePlayerMoney(playerid,-50);
    }
    if(listitem == 3)
    {


    //bijela
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon add-ed!");
    GivePlayerMoney(playerid,-50);
    }
    if(listitem == 4)
    {



    //pink
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon add-ed!");
    GivePlayerMoney(playerid,-50);
    }
    if(listitem == 5)
    {


    //zuta
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon add-ed!");
    GivePlayerMoney(playerid,-50);

    Hey leute,
    ich benutze RC5 aber trozdem wenn ich z.B. was mit neons Compeliere kommt die meldung AttachObjectToVehicle
    langsam weiß ich echt nicht mehr was ich machen soll habe schon alles durch.