Beiträge von Uranos

    Ich habe keinen stock/public, der SaveStuff heißt, ich hab nur diese stocks:

    stock LoadAccount(playerid)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    SetPlayerScore(playerid,dini_Int(Spielerdatei,"Score"));
    GivePlayerMoney(playerid,dini_Int(Spielerdatei,"Money"));
    SetPVarInt(playerid,"Adminlevel",dini_Int(Spielerdatei,"Adminlevel"));
    return 1;
    }


    stock SpielerSpeichern(playerid)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    dini_IntSet(Spielerdatei,"Score",GetPlayerScore(playerid));
    dini_IntSet(Spielerdatei,"Money",GetPlayerMoney(playerid));
    dini_IntSet(Spielerdatei,"Adminlevel",GetPVarInt(playerid,"Adminlevel"));
    return 1;
    }



    und noch Register und login und so

    Also:
    Das Licht leuchtet nun auch tagsüber (ManualVehicleEngineAndLights();)
    Der gmx-Befehl:

    if (strcmp(cmdtext,"/gmx",true)==0 || strcmp(cmdtext, "/restart", true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,1000))
    {
    SendRconCommand("gmx");
    SendClientMessage(playerid,Rot,"You have restartet the server.");
    return 1;
    }
    SendClientMessage(playerid,Blau,"You aren´t an admin.");
    return 1;
    }


    edit: mein GameText (Style1) bleibt lange, trotz sehr kurzer eingestellter Zeit?!?

    der Befehl:

    if (strcmp(cmdtext, "/light", true) == 0 || strcmp(cmdtext, "/lights", true) == 0 || strcmp(cmdtext, "/l", true) == 0)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    if (IsPlayerInAnyVehicle(playerid))
    {
    new vid = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(vid,engine,light,alarm,doors,bonnet,boot,objective);
    if(light == VEHICLE_PARAMS_OFF || light == VEHICLE_PARAMS_UNSET)
    {
    SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid,Orange,"You´ve turned on the light.");
    }
    else
    {
    SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid,Orange,"You´ve turned off the light.");
    }
    }
    }
    return 1;
    }


    ich habe schon drin, dass was im Chat steht, aber ich möchte auch einen TXTDRAW


    mir ist auch ein Problem aufgefallen: das licht leuchtet nur abends/nachts, kann man das fixen?


    noch 2 Probleme (nicht mit dem licht):
    seitdem ich das M_Bot.in drin hab, hab ich diese 8 Warnings:



    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "BadWords"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "EnableM_Bot"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "M_OnPlayerCommandText"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "M_OnPlayerConnect"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "M_OnPlayerDeath"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "M_OnPlayerSpawn"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "M_OnPlayerStateChange"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2644) : warning 203: symbol is never used: "M_OnPlayerUpdate"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    8 Warnings.


    UND


    Bei /gmx wird das Adminlevel zurückgesetzt?!?


    LG


    edit: die beiden anderen Probleme geaddet

    Hey Leute!
    Ich habe grade den M_Bot Include zu meinem Script hinzugefügt, nun kommen diese 9 warnings, das nervt!

    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\pawno\include\M_Bot.inc(579) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2589) : warning 203: symbol is never used: "BadWords"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2589) : warning 203: symbol is never used: "EnableM_Bot"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2589) : warning 203: symbol is never used: "M_OnPlayerCommandText"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2589) : warning 203: symbol is never used: "M_OnPlayerConnect"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2589) : warning 203: symbol is never used: "M_OnPlayerDeath"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2589) : warning 203: symbol is never used: "M_OnPlayerSpawn"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2589) : warning 203: symbol is never used: "M_OnPlayerStateChange"
    C:\Users\Marius\Desktop\Dropbox\FUN-SA-MP Project\gamemodes\Fun.pwn(2589) : warning 203: symbol is never used: "M_OnPlayerUpdate"

    Hoffentlich wisst ihr die Lösung,
    LG, Uranos


    //edit: neues WARNING
    //edit: neue Headline