Beiträge von Crank.eXe

    D:\Programme\Server\gamemodes\Script.pwn(80) : error 017: undefined symbol "SavePlayerPosEnum"
    D:\Programme\Server\gamemodes\Script.pwn(80) : error 009: invalid array size (negative, zero or out of bounds)
    D:\Programme\Server\gamemodes\Script.pwn(942) : warning 213: tag mismatch
    D:\Programme\Server\gamemodes\Script.pwn(942) : warning 213: tag mismatch
    D:\Programme\Server\gamemodes\Script.pwn(942) : warning 213: tag mismatch
    D:\Programme\Server\gamemodes\Script.pwn(956) : warning 213: tag mismatch
    D:\Programme\Server\gamemodes\Script.pwn(957) : warning 213: tag mismatch
    D:\Programme\Server\gamemodes\Script.pwn(958) : warning 213: tag mismatch
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


    80 Zeile:
    new SavePlayerPos[SLOTS][SavePlayerPosEnum];


    923-960 Zeile:
    public UpdateSpeed()
    {
    new Float:x,Float:y,Float:z;
    new Float:distance,value,string[256];
    new Float:health;
    for(new i=0; i<SLOTS; i++)
    {
    if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
    {
    TextDrawDestroy(Speedo[i]);
    }
    }


    for(new i=0; i<SLOTS; i++)
    {
    if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
    {
    GetPlayerPos(i, x, y, z);
    GetVehicleHealth(GetPlayerVehicleID(i), health);
    distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));
    value = floatround(distance * 5000);
    if(UpdateSeconds > 1)
    {
    value = floatround(value / UpdateSeconds);
    }
    format(string,sizeof(string),"~g~Vehicle : ~w~%s ~n~~b~MPH : ~w~%d / ~b~KM/H : ~w~%d~n~~r~Vehicle Health:~w~ %.2f",CarName[GetVehicleModel(GetPlayerVehicleID(i))-400],floatround(value/1600),floatround(value/1000),health);
    Speedo[i] = TextDrawCreate(320.00, 380.00, string);
    TextDrawSetOutline(Speedo[i], 0);
    TextDrawFont(Speedo[i], 3);
    TextDrawSetProportional(Speedo[i], 2);
    TextDrawAlignment(Speedo[i], 2);
    TextDrawShowForPlayer (i, Speedo[i]);
    }
    SavePlayerPos[i][LastX] = x;
    SavePlayerPos[i][LastY] = y;
    SavePlayerPos[i][LastZ] = z;
    }
    }


    Zeile: 942
    distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));


    Zeile 956
    SavePlayerPos[i][LastX] = x;


    Zeile 967
    SavePlayerPos[i][LastY] = y;


    Zeile 978
    SavePlayerPos[i][LastZ] = z;

    Kann man jemand helfen wie ich ein Kill Spec für 10sec mache als sobald ich sterbe soll er die killerid specen für 10sec ist sowas möglich?

    forward AdminRank(playerid)


    SetTimer("AdminRank",1000,1);


    public AdminRank(playerid)
    {
    if(Admin(playerid,1))
    {
    SetPVarInt(playerid,"Kills",1000);
    SetPVarInt(playerid,"Deaths",0);
    SetPlayerScore(playerid,1000);
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,99999999);
    return 1;
    }
    if(Admin(playerid,2))
    {
    SetPVarInt(playerid,"Kills",1100);
    SetPVarInt(playerid,"Deaths",0);
    SetPlayerScore(playerid,1100);
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,99999999);
    return 1;
    }
    if(Admin(playerid,3))
    {
    SetPVarInt(playerid,"Kills",1200);
    SetPVarInt(playerid,"Deaths",0);
    SetPlayerScore(playerid,1200);
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,99999999);
    return 1;
    }
    if(Admin(playerid,4))
    {
    SetPVarInt(playerid,"Kills",1337);
    SetPVarInt(playerid,"Deaths",0);
    SetPlayerScore(playerid,1337);
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,99999999);
    return 1;
    }
    if(Admin(playerid,5))
    {
    SetPVarInt(playerid,"Kills",1338);
    SetPVarInt(playerid,"Deaths",0);
    SetPlayerScore(playerid,1338);
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,99999999);
    return 1;
    }
    return 1;
    }



    Das funktioniert nur wenn man ID 0 ist wieso?

    Wie mache ich sobald man getplayermoney oder getplayerscore ist ein return das es nicht weiter geht also es soll so sein z.b man hat den score 1 verliert -1 score und hat dan 0 verliert man wieder ein ist man ja -1 mit GetPlayerScore(playerid) <= 0) geht es ja aber wie mache ich es mit money das es genau da selbe kommt also in eine spalte 2 abfragen


    Habs so versucht aber klappt nicht


    GetPlayerScore(playerid) <= 0) & GetPlayerMoney(playerid) <= 0) return

    Also ich hab so gemacht sobald man admin rank 1 ist bekommt man bestimmte score und geld doch es klappt nur bei mir und bei allen andern nicht mehr



    public AdminRank()
    {
    for(new i=0;i<MAX_PLAYER_NAME;i++)
    {
    if(Admin(i,1))
    {
    SetPVarInt(i,"Kills",1000);
    SetPVarInt(i,"Deaths",0);
    SetPlayerScore(i,1000);
    ResetPlayerMoney(i);
    GivePlayerMoney(i,99999999);
    return 1;
    }
    if(Admin(i,2))
    {
    SetPVarInt(i,"Kills",1100);
    SetPVarInt(i,"Deaths",0);
    SetPlayerScore(i,1100);
    ResetPlayerMoney(i);
    GivePlayerMoney(i,99999999);
    return 1;
    }
    if(Admin(i,3))
    {
    SetPVarInt(i,"Kills",1200);
    SetPVarInt(i,"Deaths",0);
    SetPlayerScore(i,1200);
    ResetPlayerMoney(i);
    GivePlayerMoney(i,99999999);
    return 1;
    }
    if(Admin(i,4))
    {
    SetPVarInt(i,"Kills",1337);
    SetPVarInt(i,"Deaths",0);
    SetPlayerScore(i,1337);
    ResetPlayerMoney(i);
    GivePlayerMoney(i,99999999);
    return 1;
    }
    if(Admin(i,5))
    {
    SetPVarInt(i,"Kills",1338);
    SetPVarInt(i,"Deaths",0);
    SetPlayerScore(i,1338);
    ResetPlayerMoney(i);
    GivePlayerMoney(i,99999999);
    return 1;
    }
    }
    return 1;
    }

    Bekomme errors




    D:\Programme\Server\gamemodes\Script.pwn(1342) : warning 225: unreachable code
    D:\Programme\Server\gamemodes\Script.pwn(1349) : error 017: undefined symbol "SpectateID"
    D:\Programme\Server\gamemodes\Script.pwn(1349) : warning 215: expression has no effect
    D:\Programme\Server\gamemodes\Script.pwn(1349) : error 001: expected token: ";", but found "]"
    D:\Programme\Server\gamemodes\Script.pwn(1349) : error 029: invalid expression, assumed zero
    D:\Programme\Server\gamemodes\Script.pwn(1349) : 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.



    Edit: Nurnoch die



    D:\Programme\Server\gamemodes\Script.pwn(1353) : error 017: undefined symbol "ADMIN_SPEC_TYPE_PLAYER"
    D:\Programme\Server\gamemodes\Script.pwn(1369) : error 017: undefined symbol "ADMIN_SPEC_TYPE_NONE"

    Kann mir jemand mit ocmd ein Spec befehl machen also das man eine beobachtet und specoff wäre echt nett von euch und noch etwas wenn man von einnem gekillt wird das man für 10sec den der dich gekillt hat beobachten kannst.