Jump to content

RusKo69

Membru
  • Posts

    31
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by RusKo69

  1. 43 minutes ago, Kasper said:

     

    frate insa mai am o problema, imi da erorile astea la linia if(CP[playerid] == 1000)

     C:\Users\Acer\Desktop\gm ragnor\gamemodes\ragnor.pwn(123) : error 029: invalid expression, assumed zero
    C:\Users\Acer\Desktop\gm ragnor\gamemodes\ragnor.pwn(123) : error 029: invalid expression, assumed zero
    C:\Users\Acer\Desktop\gm ragnor\gamemodes\ragnor.pwn(123) : warning 215: expression has no effect
    C:\Users\Acer\Desktop\gm ragnor\gamemodes\ragnor.pwn(123) : error 001: expected token: ";", but found "]"
    C:\Users\Acer\Desktop\gm ragnor\gamemodes\ragnor.pwn(123) : fatal error 107: too many error messages on one line

    am definit cp, am facut cam tot ce trb cum le rezolv?

    Arata linia 123

  2. CMD:closestcar(playerid, params[]) 

        if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LGREEN, AdminOnly); 
        if(IsPlayerInAnyVehicle(playerid))return SCM(playerid, COLOR_GREY, "Esti deja intr-un vehicul."); 
        new thacar = GetClosestVehicle(playerid), string[150], sendername[25];
        PutPlayerInVehicle(playerid, thacar, 0); 
        SCM(playerid, COLOR_GREY,"Ai fost teleportat in cel mai apropiat vehicul."); 
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "AdmCmd: Admin %s s-a teleportat in masina ID %d cu ajutorul comenzi /closestcar.",sendername, GetPlayerVehicleID(playerid));
        SendAdminMessage(COLOR_LOGS, string, 1);
        Adminlog(string);
        return 1; 

     

     

    CMD:up(playerid,params[]) {
        if(PlayerInfo[playerid][pAdmin] >= 1) {
            new Float:slx, Float:sly, Float:slz;
            GetPlayerPos(playerid, slx, sly, slz);
            SetPlayerPosEx(playerid, slx, sly, slz+5.0);
        }
        return 1;
    }

    • Upvote 1
  3. Am schimbat interiorul la o factiune, cand ma spawnez imi arata interiorul ok dar cand intru eu in HQ mi l da pe cel vechi..

    Video:  

     

     

                   for(new i = 1; i < 20; i++) {
                        if(PlayerToPoint(2.0, playerid, DynamicFactions[extX], DynamicFactions[extY], DynamicFactions[extZ])) {
                            if(PlayerInfo[playerid][pMember] == i) EnterFaction(playerid, i);
                        }
                   }

                   for(new i = 1; i < 20; i++) {
                        if(PlayerToPoint(2.0, playerid, DynamicFactions[fcX], DynamicFactions[fcY], DynamicFactions[fcZ])) {
                            if(DynamicFactions[fVW] == GetPlayerVirtualWorld(playerid) && DynamicFactions[fInterior] == GetPlayerInterior(playerid)) ExitFaction(playerid, i);
                        }
                   }

     

    function EnterFaction(playerid, fid) {
        SetPlayerPosEx(playerid, DynamicFactions[fid][fcX], DynamicFactions[fid][fcY], DynamicFactions[fid][fcZ]);
        SetPlayerInterior(playerid, DynamicFactions[fid][fInterior]);
        SetPlayerVirtualWorld(playerid, DynamicFactions[fid][fVW]);
        InHQ[playerid] = fid;
        return 1;
    }

    function ExitFaction(playerid, fid) {
        SetPlayerPosEx(playerid, DynamicFactions[fid][extX], DynamicFactions[fid][extY], DynamicFactions[fid][extZ]);
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
        InHQ[playerid] = 0;
        return 1;
    }

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.