Jump to content

andreyctn

Membru
  • Posts

    9
  • Joined

  • Last visited

Posts posted by andreyctn

  1. La 7/4/2018 la 21:58, MiritaXD a spus:

    uite aici o comanda 

     

    
    CMD:test(playerid, params[])
                    {
                        if(PlayerInfo[playerid][pLeader] == 0) return SCM(playerid, -1, "Nu esti lider de factiune!");
                        switch(DynamicFactions[PlayerInfo[playerid][pLeader]][fApplication]) {
                            case 0: SCM(playerid, -1, "Aplicatii deschise!"), DynamicFactions[PlayerInfo[playerid][pLeader]][fApplication] = 1;
                            case 1: SCM(playerid, -1, "Aplicatii inchise!"), DynamicFactions[PlayerInfo[playerid][pLeader]][fApplication] = 0;
                        }
                        return 1;
                    }

     

    Frate nu e comanda asta in gm ..... pfff

  2. La 22/2/2018 la 14:48, MiritaXD a spus:

    Incerca asa

    
    CMD:vipname(playerid, params[])
    {
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SCM(playerid, COLOR_WHITE, "Nu esti intr-un vehicul.");
        new vehicleid = GetPlayerVehicleID(playerid);
    
        if(!IsPlayerConnected(playerid)) return SCM(playerid, COLOR_WHITE, "Nu esti conectat");
        if(PlayerInfo[IsAnOwnableCar(vehicleid)][pUpgrade] == 0) return SCM(playerid, COLOR_WHITE, "Poti folosi aceasta comanda doar pe vehicule VIP.");
    
        new query[256],text[20],test[20];
        if(sscanf(params, "s[20]", text)) return SCM(playerid, COLOR_WHITE, "{FF0000}Usage: {FFFFFF}/vipname [Text]");
        if(strlen(text) < 1 || text(title) > 20) return SCM(playerid, COLOR_GREY, "Minim 1 caracte maxim 20");
        
        SetVipText(playerid, vehicleid);
        mysql_real_escape_string(text, test);
        mysql_format(SQL, query, sizeof(query), "UPDATE `cars` SET `Vip`='%s' WHERE `ID`='%d'", test, CarInfo[IsAnOwnableCar(vehicleid)]);
        mysql_tquery(SQL, query, "", "");
        format(query, sizeof(query), "Text pentru vehicul setat: %s", text);
        SendClientMessage(playerid, COLOR_ADMCOMMANDS, query);
        return 1;
    }

     

    C:\Users\Utente\Desktop\Gamemode AngelZone\gamemodes\VLM.pwn(40240) : error 012: invalid function call, not a valid address
    C:\Users\Utente\Desktop\Gamemode AngelZone\gamemodes\VLM.pwn(40240) : error 017: undefined symbol "title"
    C:\Users\Utente\Desktop\Gamemode AngelZone\gamemodes\VLM.pwn(40240) : error 029: invalid expression, assumed zero
    C:\Users\Utente\Desktop\Gamemode AngelZone\gamemodes\VLM.pwn(40240) : 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.


    Pfff numai probleme sami bag ceva fratilor.

     

  3. Salut.Am o problema la la /vipname am serverul meu propiu< imi fac vehiculul vip si cand ii dau /vipname imi spune Poti folosi aceasta comanda doar pe vehicule VIP.

    Poate am gresit cu ceva la Comanda ! Uitati

     

    CMD:vipname(playerid, params[])
    {
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SCM(playerid, COLOR_WHITE, "Nu esti intr-un vehicul.");
        new vehicleid = GetPlayerVehicleID(playerid);
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[IsAnOwnableCar(vehicleid)][pUpgrade] == 0)
            {
                new query[256],text[20],test[20];
                if(sscanf(params, "s[20]", text)) return SCM(playerid, COLOR_WHITE, "{FF0000}Usage: {FFFFFF}/vipname [Text]");
                if(strlen(text) > 20) return SendClientMessage(playerid, COLOR_WHITE, "Maximum 20 characters are allowed.");
                   if(strlen(text) == 0) return 1;
                SetVipText(playerid, vehicleid);
                mysql_real_escape_string(text, test);
                mysql_format(SQL, query, sizeof(query), "UPDATE `cars` SET `Vip`='%s' WHERE `ID`='%d'", test, CarInfo[IsAnOwnableCar(vehicleid)]);
                mysql_tquery(SQL, query, "", "");
                format(query, sizeof(query), "Text pentru vehicul setat: %s", text);
                SendClientMessage(playerid, COLOR_ADMCOMMANDS, query);
            }
            else return SCM(playerid, COLOR_WHITE, "Poti folosi aceasta comanda doar pe vehicule VIP.");
        }
        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.