Jump to content

zdupx

Membru
  • Posts

    66
  • Joined

  • Last visited

    Never

Posts posted by zdupx

  1. [pawn] else if(classidi[playerid] == 102)

        {

    if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)

    {

    if(PlayerInfo[playerid][pRank] == 1)

        {

    PlayerInfo[playerid][pChar] = 144;

    SetPlayerSpawnInfo(playerid);

    GameTextForPlayer(playerid," ",1,1);

    }

    else

    {

    format(string, sizeof(string), "~r~ Chose other skin ! You are member rank %d", PlayerInfo[playerid][pRank]);

    GameTextForPlayer(playerid,string,3500,1);

    return 0;

    }

    }

    else

    {

    format(string, sizeof(string), "~r~ Chose other skin ! You are  %s", ttext);

    GameTextForPlayer(playerid,string,3500,1);

    return 0;

    }

    }[/pawn]

    E bon :> ?

  2. Salut.

    Am adaugat in GM comanda /veh

    if(strcmp(cmdtext, "/veh", true) == 0)
        {
            new tmp[256], idx, Float:X, Float:Y, Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                 return SendClientMessage(playerid, 0xFFFFFFFF, "Sintaxa: /veh <id>");
            }
            new idcar = strval(tmp);
            if(idcar >= 400 && idcar <= 611) {} else return SendClientMessage(playerid, 0xFFFFFFFF, "Masinile sunt intre 400-611!");
            new created = CreateVehicle(idcar, X, Y, Z, 90.0, 0, 0, 0);
            PutPlayerInVehicle(playerid, created, 0);
            SendClientMessage(playerid, 0xFFFFFFFF, "Succes!");
            return 1;
        }
    si de unde am luat CMD zice sa pun la sfarsit si strtok asta
    strtok(const string[], &index)
    {
        new length = strlen(string);
        while ((index < length) && (string[index] <= ' '))
        {
            index++;
        }
    
        new offset = index;
        new result[20];
        while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
        {
            result[index - offset] = string[index];
            index++;
        }
        result[index - offset] = EOS;
        return result;
    }
    Si la complie imi da errorile astea
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(62496) : warning 208: function with tag result used before definition, forcing reparse
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(137) : warning 201: redefinition of constant/macro (symbol "DIALOG_STYLE_PASSWORD")
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(141) : error 010: invalid function or declaration
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(17468) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(21161) : warning 219: local variable "tmp" shadows a variable at a preceding level
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(21161) : warning 219: local variable "idx" shadows a variable at a preceding level
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(21168) : warning 219: local variable "idcar" shadows a variable at a preceding level
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(62506) : error 021: symbol already defined: "strtok"
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(62523) : warning 203: symbol is never used: "CreatedCar"
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(62523) : warning 203: symbol is never used: "ad"
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    2 Errors.
    

  3. C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(135) : warning 201: redefinition of constant/macro (symbol "DIALOG_STYLE_PASSWORD")
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(17246) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(62133) : error 017: undefined symbol "GetPointDistanceToPointExMorph"
    C:\Documents and Settings\Owner\Desktop\CS\gamemodes\CS.pwn(62160) : warning 203: symbol is never used: "ad"
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    1 Error.
    

    Deci ?

  4. Nu citeste gm-u cand al urc pe host.

    Totul ramane ca inainte . Dau restart si nimic.

    Vreau sa precizez ca am cumparat fara data de baza.

    echo Executing Server Config...
    lanmode 0
    rcon_password tastaturatranspirata
    maxplayers 50
    bind 193.84.64.60
    port 7777
    hostname Games-Ro: RPG Server
    gamemode0 Games-Ro 1
    filterscripts anims LSSS DropGun_death minievents radio anti-flood Engine R_Speedov2
    plugins streamer.so sscanf.so mysql.so
    announce 0
    query 1
    weburl www.Games-Ro.com
    onfoot_rate 40
    incar_rate 40
    weapon_rate 40
    stream_distance 300.0
    stream_rate 1000
    maxnpc 0
    logtimeformat [%H:%M:%S]
    ----------
    Loaded log file: "server_log.txt".
    ----------
    
    SA-MP Dedicated Server
    ----------------------
    v0.3x, (C)2005-2013 SA-MP Team
    
    [16:09:34] password = ""  (string)
    [16:09:34] plugins = ""  (string)
    [16:09:34] 
    [16:09:34] Server Plugins
    [16:09:34] --------------
    [16:09:34]  Loaded 0 plugins.
    
    [16:09:35] 
    [16:09:35] Filterscripts
    [16:09:35] ---------------
    [16:09:35]   Loading filterscript 'base.amx'...
    [16:09:35] 
    --Base FS loaded.
    
    [16:09:35]   Loading filterscript 'gl_actions.amx'...
    [16:09:35]   Loading filterscript 'gl_property.amx'...
    [16:09:35] 
    -----------------------------------
    [16:09:35] Grand Larceny Property Filterscript		
    [16:09:35] -----------------------------------
    
    [16:09:35]   Loading filterscript 'gl_realtime.amx'...
    [16:09:35]   Loaded 4 filterscripts.
    
    [16:09:35] Loaded 3 vehicles from: vehicles/trains.txt
    [16:09:35] Loaded 3 vehicles from: vehicles/pilots.txt
    [16:09:35] Loaded 15 vehicles from: vehicles/lv_law.txt
    [16:09:35] Loaded 39 vehicles from: vehicles/lv_airport.txt
    [16:09:35] Loaded 255 vehicles from: vehicles/lv_gen.txt
    [16:09:35] Loaded 38 vehicles from: vehicles/sf_law.txt
    [16:09:35] Loaded 35 vehicles from: vehicles/sf_airport.txt
    [16:09:35] Loaded 353 vehicles from: vehicles/sf_gen.txt
    [16:09:35] Loaded 24 vehicles from: vehicles/ls_law.txt
    [16:09:35] Loaded 37 vehicles from: vehicles/ls_airport.txt
    [16:09:35] Loaded 98 vehicles from: vehicles/ls_gen_inner.txt
    [16:09:35] Loaded 389 vehicles from: vehicles/ls_gen_outer.txt
    [16:09:35] Loaded 71 vehicles from: vehicles/whetstone.txt
    [16:09:35] Loaded 168 vehicles from: vehicles/bone.txt
    [16:09:35] Loaded 61 vehicles from: vehicles/flint.txt
    [16:09:35] Loaded 96 vehicles from: vehicles/tierra.txt
    [16:09:35] Loaded 96 vehicles from: vehicles/red_county.txt
    [16:09:35] Total vehicles from files: 1781
    [16:09:35] Reading File: blank
    [16:09:35] Reading File: properties/houses.txt
    [16:09:35] Reading File: properties/businesses.txt
    [16:09:35] Reading File: properties/banks.txt
    [16:09:35] Reading File: properties/police.txt
    [16:09:35] 
    ---------------------------------------
    [16:09:35] Running Grand Larceny - by the SA-MP team
    
    [16:09:35] ---------------------------------------
    
    [16:09:35] Number of vehicle models: 173
    [16:09:40] Incoming connection: 78.97.240.86:57963
    [16:09:54] Incoming connection: 79.112.192.133:61614
    [16:10:17] Incoming connection: 78.97.240.86:53061
    [16:10:17] [join] AGN(BOSS) has joined the server (0:78.97.240.86)
    [16:11:39] Incoming connection: 79.112.192.133:63335
    [16:11:39] [join] EvoLyO has joined the server (1:79.112.192.133)
    [16:12:31] [chat] [EvoLyO]: ba sa vedeti co sa dea restart din nou la srv
    [16:12:37] [chat] [AGN(BOSS)]: STIU
    [16:13:21] [chat] [AGN(BOSS)]: ho
    [16:13:30] [chat] [AGN(BOSS)]: shii
    [16:13:33] [chat] [EvoLyO]: urci ?
    [16:13:37] [chat] [AGN(BOSS)]: stai
    [16:13:52] [chat] [AGN(BOSS)]: hai cu masina
    [16:14:05] [chat] [AGN(BOSS)]: vin dupe tine
    [16:15:58] Incoming connection: 79.117.50.117:61229
    [16:15:58] [join] eecila42 has joined the server (2:79.117.50.117)
    [16:16:05] [chat] [eecila42]: hey
    [16:16:08] [chat] [eecila42]: carei owneru
    [16:16:15] [chat] [EvoLyO]: e bulit srv
    [16:16:20] [chat] [AGN(BOSS)]: nu are gm sv
    [16:16:31] [chat] [eecila42]: zi carei owneru am oferte
    [16:16:32] [chat] [EvoLyO]: mai pe intelesu tau
    [16:16:39] [chat] [AGN(BOSS)]: nu e  on
    [16:16:44] [chat] [EvoLyO]: bag pula taci din gura
    [16:17:02] [chat] [eecila42]: careva care are sv samp/cs
    [16:17:03] [chat] [eecila42]: careva care are sv samp/cs
    [16:17:10] [chat] [AGN(BOSS)]: eu am sv de samp
    [16:17:18] [chat] [AGN(BOSS)]: dar nam playeri
    [16:17:32] [chat] [eecila42]: nui bai
    [16:17:40] [chat] [eecila42]: il facem noi populat e hostat macatr
    [16:17:42] [chat] [eecila42]: il facem noi populat e hostat macar
    [16:17:43] [chat] [AGN(BOSS)]: da
    [16:17:49] [chat] [eecila42]: da id de mes
    [16:18:01] [chat] [AGN(BOSS)]: mihaimihai616
    [16:18:59] [part] AGN(BOSS) has left the server (0:1)
    

  5. [pawn]//=============================================================================================================================================================

    // = Comanda: /gotols

    //=============================================================================================================================================================

    if(strcmp(cmd, "/gotols", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)

    {

    if (GetPlayerState(playerid) == 2)

    {

    new tmpcar = GetPlayerVehicleID(playerid);

    SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);

    TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;

    }

    else

    {

    SetPlayerPos(playerid, 1529.6,-1691.2,13.3);

    }

    SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[infinity]: {ffd700}Ai fost Teleportat cu succes.");

    SetPlayerInterior(playerid,0);

    PlayerInfo[playerid][pInt] = 0;

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[infinity]: {FFFFFF}Ne pare rau, dar nu ai acces la aceasta comanda.");

    }

    }

    return 1;

    }[/pawn]

  6. Salut.

    Am urcat serverul pe host , si cand dau sa intru in joc nu ma conecteaza.

    echo Executing Server Config...
    lanmode 0
    rcon_password censored
    maxplayers 50
    bindip 89.33.242.230
    port 7777
    hostname Infinity: RPG Server
    gamemode0 Infinity 1
    filterscripts anims LSSS DropGun_death minievents radio anti-flood Engine R_Speedov2 Sistem_Poarta
    plugins streamer.so sscanf.so mysql.so
    announce 0
    query 1
    weburl www.Infinity.ro
    onfoot_rate 40
    incar_rate 40
    weapon_rate 40
    stream_distance 300.0
    stream_rate 1000
    maxnpc 0
    logtimeformat [%H:%M:%S]
    si log-u
    ----------
    Loaded log file: "server_log.txt".
    ----------
    
    SA-MP Dedicated Server
    ----------------------
    v0.3d-R2, (C)2005-2011 SA-MP Team
    
    [13:28:06] filterscripts = ""  (string)
    [13:28:06] 
    [13:28:06] Server Plugins
    [13:28:06] --------------
    [13:28:06]  Loaded 0 plugins.
    
    [13:28:07] I couldn't load any gamemode scripts. Please verify your server.cfg
    [13:28:07] It needs a gamemode0 line at the very least.
    
    ----------
    Loaded log file: "server_log.txt".
    ----------
    
    SA-MP Dedicated Server
    ----------------------
    v0.3d-R2, (C)2005-2011 SA-MP Team
    
    [13:28:18] filterscripts = ""  (string)
    [13:28:18] 
    [13:28:18] Server Plugins
    [13:28:18] --------------
    [13:28:18]  Loaded 0 plugins.
    
    [13:28:18] 
    [13:28:18] Filterscripts
    [13:28:18] ---------------
    [13:28:18]   Loaded 0 filterscripts.
    
    [13:28:18] HouseInfo:0 Owner:The State hTakings 2045 hVec 418
    [13:28:18] HouseInfo:1 Owner:The State hTakings 0 hVec 418
    [13:28:18] HouseInfo:2 Owner:The State hTakings 21600 hVec 418
    [13:28:18] HouseInfo:3 Owner:The State hTakings 0 hVec 418
    [13:28:18] HouseInfo:4 Owner:The State hTakings 3400 hVec 418
    [13:28:18] HouseInfo:5 Owner:The State hTakings 77256 hVec 418
    [13:28:18] HouseInfo:6 Owner:The State hTakings 0 hVec 418
    [13:28:18] HouseInfo:7 Owner:The State hTakings 19077 h

  7. [pawn]if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    if(gTeam[playerid] != 2)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You are not a Cop !");

        return 1;

    }

    if(PlayerInfo[playerid][pRank] < 5)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You need to be Rank 5 to be able to use this !");

        return 1;

    }

    GetPlayerName(playerid, sendername, sizeof(sendername));

    new length = strlen(cmdtext);

    while ((idx < length) && (cmdtext[idx] <= ' '))

    {

    idx++;

    }

    new offset = idx;

    new result[64];

    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

    {

    result[idx - offset] = cmdtext[idx];

    idx++;

    }

    result[idx - offset] = EOS;

    if(!strlen(result))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/gov)ernment [text]");

    return 1;

    }

    if((PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) && PlayerInfo[playerid][pRank] > 5)

    {

    SendClientMessageToAll(COLOR_WHITE, "|___________ Anunt Guvernamental ___________|");

    format(string, sizeof(string), "PD %s: %s", sendername, result);

    SendClientMessageToAll(COLOR_DBLUE, string);

    }

    else if((PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) && PlayerInfo[playerid][pRank] > 5)

    {

    SendClientMessageToAll(COLOR_WHITE, "|___________ Anunt Guvernamental ___________|");

    format(string, sizeof(string), "F.B.I Agent %s: %s", sendername, result);

    SendClientMessageToAll(COLOR_DBLUE, string);

    }

    else if((PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) && PlayerInfo[playerid][pRank] > 5)

    {

    SendClientMessageToAll(COLOR_WHITE, "|___________ Anunt Guvernamental ___________|");

    format(string, sizeof(string), "National Guard %s: %s", sendername, result);

    SendClientMessageToAll(COLOR_DBLUE, string);

    }

    else if(PlayerInfo[playerid][pLeader] == 7)

    {

    SendClientMessageToAll(COLOR_WHITE, "|___________ Anunt Guvernamental ___________|");

    format(string, sizeof(string), "Mayor %s: %s", sendername, result);

    SendClientMessageToAll(COLOR_WHITE, string);

    }

        }

    return 1;

    }[/pawn]

    Cand scriu /gov merge doar National Guard , dar PD si Mayor nu merge...

  8. 26 errors...

    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(1980) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(1984) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(1999) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2003) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2007) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2011) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2015) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2030) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2034) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2038) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2042) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2046) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2061) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2065) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2069) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2084) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(2088) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(4644) : error 004: function "ProxDetector" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(4836) : error 004: function "CrimInRange" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(5219) : error 004: function "DMVCountDown" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(5252) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(5797) : error 004: function "PlayerToPoint" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(5865) : error 004: function "ProxDetector" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(6044) : error 004: function "ClearChatbox" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(6058) : error 004: function "ClearChatbox" is not implemented
    D:\BacUp 11.24\saveG RPG\gamemodes\saveG.pwn(6075) : error 004: function "ClearChatbox" is not implemented
    
    Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    26 Errors.

  9. [pawn]else if(strcmp(x_job,"mechanic",true) == 0)

    {

        if(PlayerInfo[playerid][pJob] != 7)

        {

            SendClientMessage(playerid, COLOR_GREY, "  Nu esti Car Mechanic !");

        return 1;

        }

                if(MechanicCallTime[playerid] > 0)

                {

                    SendClientMessage(playerid, COLOR_GREY, "  You have already accepted a Mechanic Call !");

        return 1;

                }

                if(PlayerOnMission[playerid] > 0)

        {

            SendClientMessage(playerid, COLOR_GREY, "  On a mission right now, can't use this command !");

            return 1;

        }

                if(MechanicCall < 999)

                {

                    if(IsPlayerConnected(MechanicCall))

                    {

                        GetPlayerName(playerid, sendername, sizeof(sendername));

                    GetPlayerName(MechanicCall, giveplayer, sizeof(giveplayer));

                    format(string, sizeof(string), "* You have accepted the Mechanic Call from %s, you have 30 Seconds to get there.",giveplayer);

    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* After the 30 Seconds the Red Marker will dissapear.");

                            format(string, sizeof(string), "* Car Mechanic %s has accepted your Mechanic Call please wait at your current Position.",sendername);

    SendClientMessage(MechanicCall, COLOR_LIGHTBLUE, string);

    new Float:X,Float:Y,Float:Z;

    GetPlayerPos(MechanicCall, X, Y, Z);

    SetPlayerCheckpoint(playerid, X, Y, Z, 5);

    GameTextForPlayer(playerid, "~w~Mechanic Caller~n~~r~Goto redmarker", 5000, 1);

    MechanicCallTime[playerid] = 1;

    MechanicCall = 999;

    return 1;

    }

                }

                else

                {

                    SendClientMessage(playerid, COLOR_GREY, "  No-one called for a Car Mechanic yet !");

        return 1;

    }

    else if(strcmp(x_job,"refill",true) == 0)

    {

        if(RefillOffer[playerid] < 999)

        {

            if(IsPlayerConnected(RefillOffer[playerid]))

            {

                if(GetPlayerMoney(playerid) > RefillPrice[playerid])

                {

                    GetPlayerName(RefillOffer[playerid], giveplayer, sizeof(giveplayer));

    GetPlayerName(playerid, sendername, sizeof(sendername));

                    new car = gLastCar[playerid];

                    new fuel;

                    PlayerInfo[RefillOffer[playerid]][pMechSkill] ++;

                    if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 50)

    { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 2, you can add more Fuel to any Players Cars."); }

    else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 100)

    { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 3, you can add more Fuel to any Players Cars."); }

    else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 200)

    { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 4, you can add more Fuel to any Players Cars."); }

    else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 400)

    { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 5, you can add more Fuel to any Players Cars."); }

    new level = PlayerInfo[RefillOffer[playerid]][pMechSkill];

    if(level >= 0 && level <= 50)

    { fuel = 15; }

    else if(level >= 51 && level <= 100)

    { fuel = 40; }

    else if(level >= 101 && level <= 200)

    { fuel = 60; }

    else if(level >= 201 && level <= 400)

    { fuel = 80; }

    else if(level >= 401)

    { fuel = 100; }

                    format(string, sizeof(string), "* You refilled your car with %d%, for $%d by Car Mechanic %s.",fuel,RefillPrice[playerid],giveplayer);

    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

    format(string, sizeof(string), "* You refilled %s's car with %d%, the $%d has been added to your PayCheck.",sendername,fuel,RefillPrice[playerid]);

    SendClientMessage(RefillOffer[playerid], COLOR_LIGHTBLUE, string);

    PlayerInfo[RefillOffer[playerid]][pPayCheck] += RefillPrice[playerid];

    GivePlayerMoney(playerid, -RefillPrice[playerid]);

    if(Gas[car] < 110) { Gas[car] += fuel; }

            RefillOffer[playerid] = 999;

    RefillPrice[playerid] = 0;

    return 1;

                }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  You cant afford the Refill !");

        return 1;

    }

            return 1;

    {

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  No-one offered to Refill your Car !");

        return 1;

    }[/pawn]

    Imi da 26 de errori , adica nu am inchis o acolada sau ceva... , eu nu am gasit ...

    Merci.

  10. Salut.

    Am pus un text 3D cu "Apasa [F] sau [Enter] pentru a intra."

    Si se vede de la cam mare distanta... , ce trb sa i pun la sfarsit ca sa se vada doar de aproape ?.

    [pawn]Create3DTextLabel("{00f5ff} Primarie Los Santos\n {FFFFFF}Apasa [F] sau [Enter] \n pentru a intra",0xE60000FF,1509.3344,-1785.5308,13.5469,359.9044,8,0,1);[/pawn]

  11. Am luat din GM SkyZone comanda /ooc si ma trezesc cu erroarea asta:

    C:\Documents and Settings\Owner\Desktop\saveG RPG\gamemodes\saveG.pwn(732) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"
    C:\Documents and Settings\Owner\Desktop\saveG RPG\gamemodes\saveG.pwn(732) : warning 215: expression has no effect
    C:\Documents and Settings\Owner\Desktop\saveG RPG\gamemodes\saveG.pwn(732) : error 001: expected token: ";", but found "]"
    C:\Documents and Settings\Owner\Desktop\saveG RPG\gamemodes\saveG.pwn(732) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Owner\Desktop\saveG RPG\gamemodes\saveG.pwn(732) : 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.
    r.

    Comanda /ooc : [pawn]if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

            if(gPlayerLogged[playerid] == 0)

            {

                SendClientMessage(playerid, COLOR_GREY, " Inca nu esti logat!");

                return 1;

            }

            if(PlayerOOC[playerid] == -1)

                {

    SendClientMessage(playerid,COLOR_1RED,"Poti trimite un mesaj ooc doar o data la 1 Minut !");

    return 1;

                }

    if ((noooc) && PlayerInfo[playerid][pAdminServer] < 1)

    {

    SendClientMessage(playerid, COLOR_GRAD2, " Canalul OOC este oprit!");

    return 1;

    }

    if(PlayerInfo[playerid][pMuted] == 1 && PlayerInfo[playerid][pMuteTime] > 0)

    {

    SendClientMessage(playerid, TEAM_CYAN_COLOR, "  Nu poti vorbi, esti pe MUTE !");

    return 1;

    }

    if(PlayerInfo[playerid][pBiggestFish] == 112) return SendClientMessage(playerid, COLOR_GRAD2, "Ai /aban, nu mai poti folosi chatul ooc (/o) pana nu primesti /aunban");

    GetPlayerName(playerid, sendername, sizeof(sendername));

    new length = strlen(cmdtext);

    while ((idx < length) && (cmdtext[idx] <= ' '))

    {

    idx++;

    }

    new offset = idx;

    new result[356];

    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

    {

    result[idx - offset] = cmdtext[idx];

    idx++;

    }

    result[idx - offset] = EOS;

    if(!strlen(result))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}Info{FFFFFF}: (/o)oc [ooc chat]");

    return 1;

    }

    if(PlayerInfo[playerid][pAdminServer] >= 6000)

    {

    format(string, sizeof(string), "{FF6600}(( {FFFFFF}Owner {F81414}%s{FFFFFF}: {FFFFFF}%s {FF6600}))",sendername, result);

    OOCOff(COLOR_OOC,string);

    printf("%s", string);

    }

    if(PlayerInfo[playerid][pAdminServer] == 1339)

    {

    format(string, sizeof(string), "{FFFFFF}(( Owner {F81414}%s{FFFFFF} : {FFFFFF}%s ))",sendername, result);

    OOCOff(COLOR_OOC,string);

    printf("%s", string);

    SetTimerEx("ResetOOC", 10000, 0, "d", playerid);

        PlayerOOC[playerid] = -1;

    }

                if(PlayerInfo[playerid][pAdminServer] == 1338)

    {

    format(string, sizeof(string), "{FFFFFF}(( Co-Owner {FF8000}%s{FFFFFF} : %s ))",sendername, result);

    OOCOff(COLOR_OOC,string);

    printf("%s", string);

    SetTimerEx("ResetOOC", 60000, 0, "d", playerid);

        PlayerOOC[playerid] = -1;

    }

                if(PlayerInfo[playerid][pAdminServer] == 1337)

    {

    format(string, sizeof(string), "{FFFFFF}(( Super Admin {FFBF00}%s{FFFFFF} : %s ))",sendername, result);

    OOCOff(COLOR_OOC,string);

    printf("%s", string);

    SetTimerEx("ResetOOC", 60000, 0, "d", playerid);

        PlayerOOC[playerid] = -1;

    }

    if(PlayerInfo[playerid][pAdminServer] == 4)

    {

    format(string, sizeof(string), "{FFFFFF}(( VIP Admin {4000FF}%s{FFFFFF} : %s ))",sendername, result);

    OOCOff(COLOR_OOC,string);

    printf("%s", string);

    SetTimerEx("ResetOOC", 60000, 0, "d", playerid);

        PlayerOOC[playerid] = -1;

    }

    if(PlayerInfo[playerid][pAdminServer] == 3)

    {

    format(string, sizeof(string), "{FFFFFF}(( Extra Admin {4080FF}%s{FFFFFF} : %s ))",sendername, result);

    OOCOff(COLOR_OOC,string);

    printf("%s", string);

    SetTimerEx("ResetOOC", 60000, 0, "d", playerid);

        PlayerOOC[playerid] = -1;

    }

    if(PlayerInfo[playerid][pAdminServer] == 2)

    {

    format(string, sizeof(string), "{FFFFFF}(( Advanced Admin {00BFFF}%s{FFFFFF} : %s ))",sendername, result);

    OOCOff(COLOR_OOC,string);

    printf("%s", string);

    SetTimerEx("ResetOOC", 60000, 0, "d", playerid);

        PlayerOOC[playerid] = -1;

    }

    if(PlayerInfo[playerid][pAdminServer] == 1)

    {

    format(string, sizeof(string), "{FFFFFF}(( Demo Admin {80FFFF}%s{FFFFFF} : %s ))",sendername, result);

    OOCOff(COLOR_OOC,string);

    printf("%s", string);

                SetTimerEx("ResetOOC", 100000, 0, "d", playerid);

        PlayerOOC[playerid] = -1;

    }

    }

    return 1;

    }

    [/pawn]

  12. Merci , am trecut de mai multe errori dupa ce am rezolvato pe aia dar nu pot trece de:

    C:\saveG RPG\gamemodes\saveG.pwn(132) : warning 207: unknown #pragma
    C:\saveG RPG\gamemodes\saveG.pwn(132) : error 038: extra characters on line
    C:\saveG RPG\gamemodes\saveG.pwn(133) : warning 207: unknown #pragma
    C:\saveG RPG\gamemodes\saveG.pwn(133) : error 038: extra characters on line
    C:\saveG RPG\gamemodes\saveG.pwn(2354) : error 028: invalid subscript (not an array or too many subscripts): "OwnableCarOffer"
    C:\saveG RPG\gamemodes\saveG.pwn(2354) : warning 215: expression has no effect
    C:\saveG RPG\gamemodes\saveG.pwn(2354) : error 001: expected token: ";", but found "]"
    C:\saveG RPG\gamemodes\saveG.pwn(2354) : error 029: invalid expression, assumed zero
    C:\saveG RPG\gamemodes\saveG.pwn(2354) : fatal error 107: too many error messages on one line
    
    Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    6 Errors.
    
    

    Linia 130-135 sunt acestea : #pragma tabsize 0

    #pragma unused pCarKey

    #pragma usued pCarKey2

    #pragma usued pCarKey3

    #pragma unused CarInfo

    #pragma unused IsAtDealership

    Iar    2354    PaperOffer[playerid] = 999; ConsumingMoney[playerid] = 0;

        gLastCar[playerid] = 0; FirstSpawn[playerid] = 0;

        OwnableCarOffer[playerid] = 999; OwnableCarID[playerid] = 0; OwnableCarPrice[playerid] = 0;

    gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;

    gSpeedo[playerid] = 0; gGas[playerid] = 1;

    gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0;

    gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;

×
×
  • 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.