Beiträge von Mr.Undercover

    SA-MP Dedicated Server
    ----------------------
    v0.3x, (C)2005-2013 SA-MP Team


    [18:22:45] filterscripts = "" (string)
    [18:22:45]
    [18:22:45] Server Plugins
    [18:22:45] --------------
    [18:22:45] Loading plugin: mysql
    [18:22:45] Failed.
    [18:22:45] Loaded 0 plugins.


    [18:22:45]
    [18:22:45] Filterscripts
    [18:22:45] ---------------
    [18:22:45] Loaded 0 filterscripts.


    [18:22:45] Script[gamemodes/Test.amx]: Run time error 19: "File or function is not found"
    [18:22:45] Number of vehicle models: 0

    Hey,
    Ich habe das Tut von maddin genommen und gemacht
    nun bekomme ich aber Errors
    C:\Users\Nils\Desktop\Alles\gamemodes\Test.pwn(339) : error 017: undefined symbol "mysql_query"
    C:\Users\Nils\Desktop\Alles\gamemodes\Test.pwn(352) : error 017: undefined symbol "mysql_query"
    C:\Users\Nils\Desktop\Alles\gamemodes\Test.pwn(360) : error 017: undefined symbol "mysql_query"
    C:\Users\Nils\Desktop\Alles\gamemodes\Test.pwn(415) : error 017: undefined symbol "mysql_query"
    C:\Users\Nils\Desktop\Alles\gamemodes\Test.pwn(417) : error 017: undefined symbol "mysql_fetch_int"
    C:\Users\Nils\Desktop\Alles\gamemodes\Test.pwn(443) : error 017: undefined symbol "mysql_query"
    C:\Users\Nils\Desktop\Alles\gamemodes\Test.pwn(466) : error 017: undefined symbol "mysql_query"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    7 Errors.


    mysql_query(Query);
    new sqlint = mysql_fetch_int();


    Kann mir da einer helfen???
    MfG

    Geht das so mit den schleifen??


    if(strcmp(cmd, "/fill", true) == 0 || strcmp(cmd, "/fillcar", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new i=0; i<MAX_PLAYERS; i++) // Hier??
    {
    for(new b = 0; b < sizeof(TankeInfo); b++) // und Hier
    {

    if(IsPlayerInRangeOfPoint(i,5.0, TankeInfo[b][tEntranceX], TankeInfo[b][tEntranceY], TankeInfo[b][tEntranceZ]))
    {
    if(IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
    {
    SendClientMessage(playerid,COLOR_GRAD1,"Du kannst dein Fahrrad nicht Auftanken!");
    }
    else
    {
    SetTimer("Fillup",RefuelWait,0);
    Refueling[playerid] = 1;
    TogglePlayerControllable(playerid, 0);
    SendClientMessage(playerid,COLOR_WHITE,"Dein Fahrzeug wird betankt, bitte warten...");
    format(string, sizeof(string), "UserCMD: %s Tankt an einer Tankstelle auf (/fill).", PlayerName(playerid));
    ABroadCast(COLOR_LIGHTRED,string, 5);
    }
    }
    else
    {
    //SendClientMessage(playerid,COLOR_GREY,"Du bist an keiner Tankstelle!");
    //return 1;
    }
    }
    }
    }
    return 1;
    }

    Hey,
    Wenn man an einer Tanke /fill macht sollte das Auto voll getankt werden
    Statt dessen wir man gefreezt und nichts passiert


    if(strcmp(cmd, "/fill", true) == 0 || strcmp(cmd, "/fillcar", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new b = 0; b < sizeof(TankeInfo); b++)
    {
    if (IsPlayerInRangeOfPoint(playerid,10.0,1004.1221,-940.8615,41.9956))
    {
    if(IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
    {
    SendClientMessage(playerid,COLOR_GRAD1,"Du kannst dein Fahrrad nicht Auftanken!");
    }
    else
    {
    SetTimer("Fillup",RefuelWait,0);
    Refueling[playerid] = 1;
    TogglePlayerControllable(playerid, 0);
    SendClientMessage(playerid,COLOR_WHITE,"Dein Fahrzeug wird betankt, bitte warten...");
    format(string, sizeof(string), "UserCMD: %s Tankt an einer Tankstelle auf (/fill).", PlayerName(playerid));
    ABroadCast(COLOR_LIGHTRED,string, 5);
    }
    }
    else
    {
    // SendClientMessage(playerid,COLOR_GREY,"Du bist an keiner Tankstelle!");
    // return 1;
    }
    }
    }


    Der Timer


    public Fillup()
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    new VID;
    new FillUp;
    //new FillUpRandom = random(250)+1;
    new string[256];
    VID = GetPlayerVehicleID(i);
    FillUp = GasMax - Gas[VID];
    for(new b = 0; b < sizeof(TankeInfo); b++)
    {
    if(IsPlayerInRangeOfPoint(i,5.0, TankeInfo[b][tEntranceX], TankeInfo[b][tEntranceY], TankeInfo[b][tEntranceZ]))
    {
    if(Refueling[i] == 1)
    {
    if(GetPlayerMoney(i) >= FillUp+4)
    {
    Gas[VID] += FillUp;
    FillUp = FillUp * TankeInfo[b][tEntranceCost];
    format(string,sizeof(string),"* Du hast dein Fahrzeug für $%d aufgetankt.",FillUp);
    SendClientMessage(i,COLOR_LIGHTBLUE,string);
    TogglePlayerControllable(i, 1);
    TogglePlayerControllable(i, 1);
    GivePlayerMoney(i, - FillUp);
    TankeInfo[b][tTill] += FillUp;
    /// TankeInfo[b][tTill] += FillUpRandom;
    TankeInfo[b][tExtortion] += FillUp;
    // TankeInfo[b][tExtortion] += FillUpRandom;
    Refueling[i] = 0;
    // SBizzInfo[3][sbTill] += FillUp; //inhaber
    // SBizzInfo[3][sbExtortion] += FillUpRandom; //mitinhaber
    }
    else
    {
    TogglePlayerControllable(i, 1);
    new cost = TankeInfo[b][tEntranceCost];
    format(string,sizeof(string),"* Nicht genug Geld zum Auffüllen, du benötigst $%d zum Auffüllen deines Autos.",cost);
    SendClientMessage(i,COLOR_LIGHTBLUE,string);
    }
    }
    }
    }
    }
    }
    return 1;
    }


    Wäre nett wenn ihr mir helfen könntet


    Mit freundlichen grüßen

    new dm1[MAX_PLAYERS]; //oben unter include

    if(strcmp("/Dm1", cmdtext, true) == 0)
    {
    if(dm1[playerid] == 0)
    {
    //new rand;
    //rand = random(sizeof(Zufallsspawns));
    //SetPlayerPos(playerid, Zufallsspawns[rand][0], Zufallsspawns[rand][1], Zufallsspawns[rand][2]);
    new name[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s hat die Arena /Dm1 Betreten.",name);
    SendClientMessageToAll(0xFF4800FF, string);
    SendClientMessage(playerid, COLOR_RED, "Du kannst die Arena mit /exit verlassen.");
    SetPlayerArmour(playerid, 100);
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 2171.1296,1619.0787,999.9766);
    SetPlayerHealth(playerid, 100);
    GivePlayerWeapon(playerid, 24, 99999);
    GivePlayerWeapon(playerid, 29, 99999);
    GivePlayerWeapon(playerid, 31, 99999);
    GivePlayerWeapon(playerid, 25, 99999);


    dm1[playerid] =1; //Setzt es auf 1 damit man sieht das er in der dm1 ist


    return 1;
    }
    else if(dm1[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_RED,"Du bist bereits in einer Arena, Benutze /exit.");
    return 1;
    }
    return 1;
    }

    if(strcmp("/Dm1", cmdtext, true) == 0)
    {
    new dm1[MAX_PLAYERS]=0;
    if(dm1[playerid] == 0)
    {
    //new rand;
    //rand = random(sizeof(Zufallsspawns));
    //SetPlayerPos(playerid, Zufallsspawns[rand][0], Zufallsspawns[rand][1], Zufallsspawns[rand][2]);
    new name[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s hat die Arena /Dm1 Betreten.",name);
    SendClientMessageToAll(0xFF4800FF, string);
    SendClientMessage(playerid, COLOR_RED, "Du kannst die Arena mit /exit verlassen.");
    SetPlayerArmour(playerid, 100);
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 2171.1296,1619.0787,999.9766);
    SetPlayerHealth(playerid, 100);
    GivePlayerWeapon(playerid, 24, 99999);
    GivePlayerWeapon(playerid, 29, 99999);
    GivePlayerWeapon(playerid, 31, 99999);
    GivePlayerWeapon(playerid, 25, 99999);


    dm1[playerid] =1; //Setzt es auf 1 damit man sieht das er in der dm1 ist


    return 1;
    }
    else if(dm1[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_RED,"Du bist bereits in einer Arena, Benutze /exit.");
    return 1;
    }
    return 1;
    }

    Hey,
    Wenn ich spawn dann werde ich gefreezt für ne zeit
    Und kann mich nicht bewegen
    Meine Geldanzeige verschwindet und ich bekomme einen Crash woran kann das liegen


    public OnPlayerSpawn(playerid)
    {
    SpawnPlayer(playerid);
    switch(GetPVarInt(playerid,"Fraktion"))
    {
    case 0:{SetPlayerPos(playerid,1178.8821,-1324.1970,14.1420);}
    case 1:{SetPlayerPos(playerid,LSPDSpawn);SetPlayerSkin(playerid,265);}
    case 2:{SetPlayerPos(playerid,SFPDSpawn);SetPlayerSkin(playerid,282);}
    case 3:{SetPlayerPos(playerid,ARMYSpawn);SetPlayerSkin(playerid,287);}
    case 4:{SetPlayerPos(playerid,SWATSpawn);SetPlayerSkin(playerid,265);}
    case 5:{SetPlayerPos(playerid,MedicSpawn);SetPlayerSkin(playerid,274);}
    case 6:{SetPlayerPos(playerid,SanNewsSpawn);}
    case 7:{SetPlayerPos(playerid,SKSpawn);SetPlayerSkin(playerid,100);}
    case 8:{SetPlayerPos(playerid,GSSpawn);SetPlayerSkin(playerid,270);}
    case 9:{SetPlayerPos(playerid,YSpawn);SetPlayerSkin(playerid,12);}
    case 10:{SetPlayerPos(playerid,TPSpawn);SetPlayerSkin(playerid,100);}
    case 11:{SetPlayerPos(playerid,LASpawn);SetPlayerSkin(playerid,114);}
    case 12:{SetPlayerPos(playerid,BSpawn);SetPlayerSkin(playerid,296);}
    case 13:{SetPlayerPos(playerid,LCNSpawn);SetPlayerSkin(playerid,113);}
    case 14:{SetPlayerPos(playerid,HMSpawn);SetPlayerSkin(playerid,290);}
    }
    TogglePlayerControllable(playerid, 1);
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, -2156.1460,-405.4047,48.1444);
    SetPlayerFacingAngle(playerid,38.8328);
    SetPlayerCameraPos(playerid, -2160.1133, -400.1772, 48.9393);
    SetPlayerCameraLookAt(playerid, -2159.3845, -400.8718, 48.9193);
    return 1;
    }


    Wäre nett wenn ihr mir helfen könnt