Beiträge von Daniel112

    überschrift Regelt, kann mir vielleicht jemand helfen?


    Server-Log:
    [21:54:44] SERVER: Es konnte keine Verbindung zur Datenbank hergestellt werden![21:54:44] Es wird erneut versucht eine Verbindung zur Datenbank herzustellen.[21:54:44] Host: 109.230.231.143,User: root,Datanbank: samp_db,Passwort: ZENSIERT[21:54:44] SERVER: Es konnte keine Verbindung zur Datenbank hergestellt werden![21:54:44] Server wird heruntergefahren ...


    MySQL-Log:


    Mit dem Plugin hat es eigentlich noch vor kurzem funktioniert und mit meinem anderem MySQL Plugin kommt nur "Unkown".

    Guten Tag,


    ich wollte die ConnectScreens von meinem Reallife-Script ins andere Script übernehmen aber irgendwie nimmt es das andere Script nicht an.


    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(68) : error 020: invalid symbol name ""
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(82) : error 010: invalid function or declaration
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(143) : error 017: undefined symbol "ConnectScreens"
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(143) : error 029: invalid expression, assumed zero
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(143) : warning 215: expression has no effect
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(144) : error 017: undefined symbol "ConnectScreens"
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(144) : warning 215: expression has no effect
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(144) : error 001: expected token: ";", but found "]"
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(144) : error 029: invalid expression, assumed zero
    C:\Users\Daniel\Desktop\Script\gamemodes\Script.pwn(144) : fatal error 107: too many error messages on one line


    new
    Float:ConnectScreens[][12] =
    {
    {520.2170,-2692.4917,29.3045,1235.5430,-1463.7256,74.6906,747.2897,-2289.2334,64.1871,1122.9785,-1407.2343,13.5950},
    {53.6547,-1586.2760,26.7310,876.0851,-2090.6841,40.6382,61.3627,-1818.8397,47.4056,1024.5706,-2296.0784,13.7134},
    {1261.3978,-1722.0037,67.4569,1415.4402,-898.3368,87.6301,1289.5490,-1520.8237,73.2041,1411.4337,-794.5302,83.3253},
    {1784.3033,-597.3705,95.6802,1566.5531,-1458.7645,109.8957,1720.1119,-872.3080,124.4788,1650.6624,-1270.5499,167.7315},
    {2179.6963,-2628.3022,77.8332,885.0618,-1328.0720,118.5268,1898.4176,-2354.3845,123.7600,623.0933,-1110.3800,47.0504},
    {-1044.9408,-215.4975,84.4178,-1667.7992,350.5618,116.7567,-1177.6682,-97.3794,110.4821,-2014.7004,173.4432,28.0117},
    {-1229.8804,1593.9078,52.7923,-1897.5474,852.1777,201.4786,-1332.3214,1466.9569,77.9798,-2075.1218,935.9204,63.7470},
    {-1620.8463,591.4999,55.2822,-698.5134,1560.7783,110.1220,-1476.8268,747.3513,70.6085,-717.8945,2053.0803,61.6994},
    {-316.1945,2479.6963,693.2885,2018.4460,1827.1375,175.5408,466.3758,2267.2295,426.5731,2377.1750,1213.2058,7.3407},
    {2375.4080,-934.6560,287.3531,1652.3013,-1574.9175,76.2145,2293.1292,-1021.5800,271.7159,1734.9792,-1637.7188,13.4575},
    {1034.5844,-966.8074,71.0640,1326.2223,-922.3495,55.9383,1197.6421,-905.2455,61.0205,1426.9155,-949.3417,36.1370}
    };


    public SetConnect(playerid)
    {
    new randcam = random(sizeof(ConnectScreens));
    SetPlayerPos(playerid,ConnectScreens[randcam][9],ConnectScreens[randcam][10],ConnectScreens[randcam][11]);
    InterpolateCameraPos(playerid,ConnectScreens[randcam][0],ConnectScreens[randcam][1],ConnectScreens[randcam][2],ConnectScreens[randcam][3],ConnectScreens[randcam][4],ConnectScreens[randcam][5],30000,CAMERA_MOVE);
    InterpolateCameraLookAt(playerid,ConnectScreens[randcam][6],ConnectScreens[randcam][7],ConnectScreens[randcam][8],ConnectScreens[randcam][9],ConnectScreens[randcam][10],ConnectScreens[randcam][11],30000,CAMERA_MOVE);
    SetTimerEx("ShowLoginOrRegisterDialog",15000,0,"i",playerid);
    return 1;
    }

    probier mal so:


    if (strcmp(cmd, "/buygun", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,290.2523,-106.7863,1001.5156)||
    IsPlayerInRangeOfPoint(playerid,3.0,295.4237,-38.1667,1001.5156))
    {
    if(PlayerInfo[playerid][pLevel] <= 4)return SendClientMessage(playerid, COLOR_RED, "Du musst mindestens Level 5 sein um hier einzukaufen");
    if(GetPlayerMoney(playerid) < 1)return SendClientMessage(playerid, COLOR_GREY, "Du hast nicht genug Geld !");
    if(PlayerInfo[playerid][pGunLic] == 0)return SendClientMessage(playerid, COLOR_GREY, "Du hast kein Waffenschein !");
    new gun,gunid[16],gunstring[256],guncharge,ammocharge,infostring[256];
    new local = PlayerInfo[playerid][pLocal];
    if(GetPlayerInterior(playerid) == 1||GetPlayerInterior(playerid) == 6)
    {
    new modsss = 200;
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    format(string, sizeof(string), "Benutzung: /buygun [waffenname] [munition]");
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    SendClientMessage(playerid, COLOR_WHITE,"*** Waffen & Munition ***");
    SendClientMessage(playerid, COLOR_GRAD2,string);
    format(gunstring, 256, "Waffen: Fallschirm ($%d) Golfschläger ($%d) Schlagstock ($%d) Baseballschläger ($%d) Schaufel ($%d) PoolCue ($%d)",
    GunPrice[0][0]/100*modsss,GunPrice[1][0]/100*modsss,GunPrice[2][0]/100*modsss,GunPrice[3][0]/100*modsss,GunPrice[4][0]/100*modsss,GunPrice[5][0]/100*modsss,GunPrice[6][0]/100*modsss);
    SendClientMessage(playerid, COLOR_GRAD3, gunstring);
    format(gunstring, 256, "Waffen: VioletterDildo ($%d) WeißerDildo ($%d) LangerweißerDildo ($%d) WeißerDildo2 ($%d) Blumen ($%d) cane",
    GunPrice[7][0]/100*modsss,GunPrice[8][0]/100*modsss,GunPrice[9][0]/100*modsss,GunPrice[10][0]/100*modsss,GunPrice[11][0]/100*modsss,GunPrice[12][0]/100*modsss);
    SendClientMessage(playerid, COLOR_GRAD3, gunstring);
    format(gunstring, 256, "Waffen: SD-Pistole ($%d) DesertEagle ($%d) MP5 ($%d)",
    GunPrice[13][0]/100*modsss,GunPrice[14][0]/100*modsss,GunPrice[15][0]/100*modsss,GunPrice[16][0]/100*modsss,GunPrice[17][0]/100*modsss,GunPrice[18][0]/100*modsss);
    SendClientMessage(playerid, COLOR_GRAD3, gunstring);
    format(gunstring, 256, "Waffen: Shotgun ($%d) AK47 ($%d) M4 ($%d) Sniper ($%d)",
    GunPrice[19][0]/100*modsss,GunPrice[20][0]/100*modsss,GunPrice[21][0]/100*modsss,GunPrice[22][0]/100*modsss,GunPrice[23][0]/100*modsss,GunPrice[24][0]/100*modsss);
    SendClientMessage(playerid, COLOR_GRAD3, gunstring);
    format(gunstring, 256, "Waffen: Pistolen Munition ($%d) Shotgun Munition ($%d) MP5 Munition ($%d) AK47/M4 Munition ($%d) Sniper Munition ($%d)",
    GunPrice[25][0],GunPrice[26][0],GunPrice[27][0],GunPrice[28][0],GunPrice[29][0]);
    SendClientMessage(playerid, COLOR_GRAD3, gunstring);
    return SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    }
    strmid(gunid, tmp, 0, strlen(cmdtext), 255);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))return format(string, sizeof(string), "BENUTZUNG: /buygun [Waffe] [Munition]");
    new ammo = strval(tmp);
    if(ammo < 1 || ammo > 999)return SendClientMessage(playerid, COLOR_GREY, " Die Munition muss zwischen 1 und 999 sein !");
    if (strcmp(gunid, "Fallschirm", true, strlen(gunid)) == 0)
    {
    gun = 46,guncharge = GunPrice[0][0]/100*modsss,ammocharge = 0;
    }
    else if (strcmp(gunid, "Golfschläger", true, strlen(gunid)) == 0)
    {
    gun = 2, guncharge = GunPrice[1][0]/100*modsss, ammocharge = 0,PlayerInfo[playerid][pGun1] = 2, PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "Schlagstock", true, strlen(gunid)) == 0)
    {
    gun = 3, guncharge = GunPrice[2][0]/100*modsss, ammocharge = 0,PlayerInfo[playerid][pGun1] = 3, PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "Baseballschläger", true, strlen(gunid)) == 0)
    {
    gun = 5, guncharge = GunPrice[4][0]/100*modsss, ammocharge = 0,PlayerInfo[playerid][pGun1] = 5, PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "Schaufel", true, strlen(gunid)) == 0)
    {
    gun = 6, guncharge = GunPrice[5][0]/100*modsss, ammocharge = 0,PlayerInfo[playerid][pGun1] = 6, PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "poolcue", true, strlen(gunid)) == 0)
    {
    gun = 7, guncharge = GunPrice[6][0]/100*modsss, ammocharge = 0,PlayerInfo[playerid][pGun1] = 7,PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "VioletterDildo", true, strlen(gunid)) == 0)
    {
    gun = 10, guncharge = GunPrice[7][0]/100*modsss, ammocharge = 0,PlayerInfo[playerid][pGun1] = 10, PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "Weißerdildo", true, strlen(gunid)) == 0)
    {
    gun = 11, guncharge = GunPrice[8][0]/100*modsss, ammocharge = 0,PlayerInfo[playerid][pGun1] = 11, PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "langerweißerdildo", true, strlen(gunid)) == 0)
    {
    gun = 12, guncharge = GunPrice[9][0]/100*modsss, ammocharge = 0,PlayerInfo[playerid][pGun1] = 12, PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "weißerdildo2", true, strlen(gunid)) == 0)
    {
    gun = 13, guncharge = GunPrice[10][0]/100*modsss, ammocharge = 0,PlayerInfo[playerid][pGun1] = 13, PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "Blumen", true, strlen(gunid)) == 0)
    {
    gun = 14, guncharge = GunPrice[11][0]/100*modsss, ammocharge = 0,PlayerInfo[playerid][pGun1] = 14, PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "cane", true, strlen(gunid)) == 0)
    {
    gun = 15, guncharge = GunPrice[12][0]/100*modsss, ammocharge = 0,PlayerInfo[playerid][pGun1] = 15, PlayerInfo[playerid][pAmmo1] = 1;
    }
    else if (strcmp(gunid, "SD-Pistole", true, strlen(gunid)) == 0)
    {
    gun = 23, guncharge = GunPrice[13][0]/100*modsss, ammocharge = GunPrice[25][0]*ammo,PlayerInfo[playerid][pGun2] = 23, PlayerInfo[playerid][pAmmo2] = ammo;
    }
    else if (strcmp(gunid, "DesertEagle", true, strlen(gunid)) == 0)
    {
    gun = 24, guncharge = GunPrice[15][0]/100*modsss, ammocharge = GunPrice[25][0]*ammo,PlayerInfo[playerid][pGun2] = 24, PlayerInfo[playerid][pAmmo2] = ammo;
    }
    else if (strcmp(gunid, "MP5", true, strlen(gunid)) == 0)
    {
    gun = 29, guncharge = GunPrice[18][0]/100*modsss, ammocharge = GunPrice[27][0]*ammo,PlayerInfo[playerid][pGun3] = 29,PlayerInfo[playerid][pAmmo3] = ammo;
    }
    else if (strcmp(gunid, "Shotgun", true, strlen(gunid)) == 0)
    {
    gun = 25, guncharge = GunPrice[19][0]/100*modsss, ammocharge = GunPrice[26][0]*ammo,PlayerInfo[playerid][pGun3] = 25, PlayerInfo[playerid][pAmmo3] = ammo;
    }
    else if (strcmp(gunid, "AK47", true, strlen(gunid)) == 0)
    {
    gun = 30, guncharge = GunPrice[22][0]/100*modsss, ammocharge = GunPrice[28][0]*ammo,PlayerInfo[playerid][pGun4] = 30, PlayerInfo[playerid][pAmmo4] = ammo;
    }
    else if (strcmp(gunid, "M4", true, strlen(gunid)) == 0)
    {
    gun = 31, guncharge = GunPrice[23][0]/100*modsss, ammocharge = GunPrice[28][0]*ammo,PlayerInfo[playerid][pGun4] = 31, PlayerInfo[playerid][pAmmo4] = ammo;
    }
    else if (strcmp(gunid, "Sniper", true, strlen(gunid)) == 0)
    {
    gun = 34, guncharge = GunPrice[24][0]/100*modsss, ammocharge = GunPrice[29][0]*ammo,PlayerInfo[playerid][pGun4] = 34,PlayerInfo[playerid][pAmmo4] = ammo;
    }
    else return SendClientMessage(playerid, COLOR_GRAD6, "Ladenbesitzer: Ich habe noch nie von dieser Waffe gehört.");
    if((guncharge+ammocharge) > GetPlayerMoney(playerid))
    {
    format(infostring, 256, " Du hast keine $%d !",guncharge+ammocharge);
    return SendClientMessage(playerid, COLOR_GRAD3, infostring);
    }
    if(GetPlayerMoney(playerid) < (guncharge+ammocharge))return SendClientMessage(playerid, COLOR_GREY, "Geht nicht !");
    new payout = guncharge + ammocharge;
    format(infostring, 256, "Du hast eine %s mit %d Munition für $%d erworben",gunid,ammo,payout);
    SendClientMessage(playerid, COLOR_GRAD3, infostring);
    GivePlayerMoney(playerid, -payout);
    /*BizzInfo[local-99][bTill] += payout/3;
    ExtortionBiz(local-99, payout);
    BizzInfo[local-99][bProducts]--;*/
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    GivePlayerWeapon(playerid, gun, ammo);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "%s hat Waffen für $%d eingekauft im BIZ: %d", sendername, payout, local-99);
    printf("%s", string);
    PayLog(string);
    return 1;
    }
    else return SendClientMessage(playerid, COLOR_WHITE,"Du bist in keinem Laden.");
    }
    }
    return 1;
    }


    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3z, (C)2005-2014 SA-MP Team


    [10:21:00] filterscripts = "" (string)
    [10:21:00]
    [10:21:00] Server Plugins
    [10:21:00] --------------
    [10:21:00] Loading plugin: streamer.so
    [10:21:00] Loaded.
    [10:21:00] Loading plugin: mysql.so
    [10:21:00] Failed (libmysqlclient_r.so.16: cannot open shared object file: No such file or directory)
    [10:21:00] Loading plugin: sscanf.so
    [10:21:00]


    [10:21:00] ===============================


    [10:21:00] sscanf plugin loaded.


    [10:21:00] Version: 2.8.1


    [10:21:00] (c) 2012 Alex "Y_Less" Cole


    [10:21:00] ===============================


    [10:21:00] Loaded.
    [10:21:00] Loading plugin: crashdetect.so
    [10:21:00] CrashDetect v4.13 is OK.
    [10:21:00] Loaded.
    [10:21:00] Loaded 3 plugins.


    [10:21:00]
    [10:21:00] Filterscripts
    [10:21:00] ---------------
    [10:21:00] Loaded 0 filterscripts.


    [10:21:00] [debug] Run time error 19: "File or function is not found"
    [10:21:00] [debug] mysql_debug
    [10:21:00] [debug] mysql_connect
    [10:21:00] [debug] mysql_ping
    [10:21:00] [debug] mysql_function_query
    [10:21:00] [debug] mysql_free_result
    [10:21:00] [debug] cache_get_data
    [10:21:00] [debug] cache_get_field_content
    [10:21:00] [debug] Run time error 19: "File or function is not found"
    [10:21:00] [debug] mysql_debug
    [10:21:00] [debug] mysql_connect
    [10:21:00] [debug] mysql_ping
    [10:21:00] [debug] mysql_function_query
    [10:21:00] [debug] mysql_free_result
    [10:21:00] [debug] cache_get_data
    [10:21:00] [debug] cache_get_field_content
    [10:21:00] Script[gamemodes/Script.amx]: Run time error 19: "File or function is not found"
    [10:21:00] Number of vehicle models: 0