Beiträge von PizzaHaus

    Hallo, mein TextDraw wird nicht angezeigt:


    web = TextDrawCreate(7.000000, 426.000000, "king-of-reallife.de");
    TextDrawBackgroundColor(web, 255);
    TextDrawFont(web, 1);
    TextDrawLetterSize(web, 0.500000, 1.000000);
    TextDrawColor(web, -16776961);
    TextDrawSetOutline(web, 0);
    TextDrawSetProportional(web, 1);
    TextDrawSetShadow(web, 1);


    new Text:web;

    [quote='Raven^','index.php?page=Thread&postID=2020917#post2020917']Jetzt musst du eine Schleife erstellen, die das Array durchgeht.


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    for(new i = 0;i<sizeof(LSPDCars);i++)
    {
    if(vehicleid == LSPDCars[i] && player[playerid][pFraktion]==1)
    {
    SendClientMessage(playerid,-1," Nur für Beamte!");
    TogglePlayerControllAble(playerid,false);
    TogglePlayerControllAble(playerid,true);
    break;
    }
    }
    return 1;
    }



    C:\Users\xxx\Desktop\SA-MP Server\gamemodes\kor.pwn(1376) : error 017: undefined symbol "TogglePlayerControllAble"
    C:\Users\xxxx\Desktop\SA-MP Server\gamemodes\kor.pwn(1377) : error 017: undefined symbol "TogglePlayerControllAble"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


    Danke und wie gehts jetzt weiter xD?


    Ups :D jz ein WARNING


    C:\Users\xxxx\Desktop\SA-MP Server\gamemodes\kor.pwn(863) : warning 209: function "ocmd_duty" should return a value
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Warning.



    ocmd:duty(playerid, params[])
    {
    if(sInfo[playerid][fraktion]==1)
    {
    if(!IsPlayerInRangeOfPoint(playerid,1,254.8841,77.1433,1003.6406))return SendClientMessage(playerid,COLOR_RED,"Du bist nicht in der LSPD-Duty Point!");
    GivePlayerWeapon(playerid,24,100);
    GivePlayerWeapon(playerid,31,100);
    GivePlayerWeapon(playerid,34,100);
    GivePlayerWeapon(playerid,3,0);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist nicht in der Fraktion LSPD!");
    }
    }

    ocmd:gov(playerid,params[])
    {
    if(sInfo[playerid][fraktion]==1)
    {
    new Text[164], string[164];
    if(sscanf(params,"s[128]",Text))return SendClientMessage(playerid,COLOR_WHITE,"FEHLER: /gov [Text]");
    format(string,sizeof(string),"%s: %s",getPlayerName(playerid),Text);
    SendClientMessageToAll(playerid,0x004BFFFF,"===============STAATS-NACHRICHT===============");
    SendClientMessageToAll(playerid, string);
    SendClientMessageToAll(playerid,0x004BFFFF,"===============STAATS-NACHRICHT-ENDE===============");

    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist nicht in der Fraktion LSPD!");
    }
    return 1;
    }


    C:\Users\xxxx\Desktop\SA-MP Server\gamemodes\kor.pwn(813) : error 035: argument type mismatch (argument 2)
    C:\Users\xxx\Desktop\SA-MP Server\gamemodes\kor.pwn(815) : error 035: argument type mismatch (argument 2)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.

    Ups hatte da ein .
    Nun habe ich ein Problem wenn ich /m schreibe kommt in mein server.exe ein text:


    sscanf warning: strings without a length are deprecated, please ad destination size.

    Hallo seid dem ich denn /m befehl gescriptet habe startet mein Server.exe nicht?


    ocmd:m(playerid,params[])
    {
    if(sInfo[playerid][fraktion]==1)
    {
    new Text[164], string[164], Float:x, Float:y, Float:z;
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,COLOR_RED,"FEHLER: /gov [Text]");
    format(string,sizeof(string),"Beamter %s: %s.",getPlayerName(playerid),Text);
    GetPlayerPos(playerid,x,y,z);
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerInRangeOfPoint(i,30,x,y,z))
    {
    SendClientMessage(i,COLOR_RED,string);
    }
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"FEHLER: Du darfst diesen Befehl nicht nutzen!");
    }
    return 1;
    }





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


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


    [19:55:28] filterscripts = "" (string)
    [19:55:28]
    [19:55:28] Server Plugins
    [19:55:28] --------------
    [19:55:28] Loading plugin: sscanf
    [19:55:28]


    [19:55:28] ===============================


    [19:55:28] sscanf plugin loaded.


    [19:55:28] Version: 2.8.1


    [19:55:28] (c) 2012 Alex "Y_Less" Cole


    [19:55:28] ===============================


    [19:55:28] Loaded.
    [19:55:28] Loading plugin: mysql
    [19:55:28] >> plugin.mysql: running on 2 threads.
    [19:55:28] >> plugin.mysql: R31 successfully loaded.
    [19:55:28] Loaded.
    [19:55:28] Loaded 2 plugins.


    [19:55:28] I couldn't load any gamemode scripts. Please verify your server.cfg
    [19:55:28] It needs a gamemode0 line at the very least.