Jump to content

Daniel_Dani

Membru
  • Posts

    88
  • Joined

  • Last visited

    Never

Posts posted by Daniel_Dani

  1. Am o problema... imi da niste erori.

    [pawn]error 017: undefined symbol "PlayerInfo"

    warning 215: expression has no effect

    error 001: expected token: ";", but found "]"

    error 029: invalid expression, assumed zero

    fatal error 107: too many error messages on one line[/pawn]

  2. Doar la asta doresc sa adaug

    [pawn]public OnPlayerCommandText (playerid, cmdtext[])

    {

    if (!strcmp (cmdtext, "/placeradar"))

    {

    if (IsPlayerInAnyVehicle (playerid))

    {

        new vehid = GetPlayerVehicleID (playerid);

        if (VehRadarID [vehid] > -1) return 1;

                new Float: x, Float: y, Float: z, Float: a;

        GetVehiclePos (vehid, x, y, z);

        GetVehicleZAngle (vehid, a);

        SendClientMessage (playerid, COLOR_YELLOW, "Radar has been added successfully.");

        VehRadarID [vehid] = CreateObject (367, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 300.0);

        AttachObjectToVehicle (VehRadarID [vehid], vehid, 0.2, 0.50, 0.3, 0.0, 0.0, 90.0);

        for (new i = 0; i < MAX_PLAYERS; i++)

        {

            if (IsPlayerInVehicle (i, vehid))

            {

              TextDrawShowForPlayer (i, RadarHud);

    }

        }

      }

    return 1;

    }[/pawn]

    Cand incerc imi da don't send de la pawno.Spec ca ma poti ajuta.

    Multumesc pentru bunavointa

  3. Esti tare frate!! A mers  :cool:

    Te rog din suflet daca poti sa ma ajuti si cu aceste warninguri:

    \pawno\include\streamer.inc(408) : warning 202: number of arguments does not match definition
    \pawno\include\JunkBuster.inc(2960) : warning 201: redefinition of constant/macro (symbol "OnPlayerConnect")
    \pawno\include\JunkBuster.inc(2961) : warning 201: redefinition of constant/macro (symbol "OnPlayerDisconnect")
    \pawno\include\JunkBuster.inc(2962) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
    (2432) : warning 204: symbol is assigned a value that is never used: "expamount"
    (2430) : warning 204: symbol is assigned a value that is never used: "account"
    (2428) : warning 204: symbol is assigned a value that is never used: "exp"
    (2425) : warning 204: symbol is assigned a value that is never used: "bigfish"
    (2202) : warning 204: symbol is assigned a value that is never used: "cash"
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

  4. Deci am bagat Streamer by Incognito(sau ceva de genu) si am schimbat CreateObject cu  CreateDynamicObject .Totul e bine dar acum nu mai merg comenzile pentru porti(adica tastez comanda si poarta ramane inchisa desi spune ca s-a deschis).Iar daca las portile cu CreateObject se vad invizibile de la distanta.Va rog sa ma ajutati.

  5. Deci am o problema pe server daca dau /ban la cineva si apoi i dau /unban ,banul tot nu i se scoate i apare ca si cum ar fi banat in continuare.

    [pawn] if(strcmp(cmd, "/ban", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

        tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ban [playerid/PartOfName] [reason]");

    return 1;

    }

    giveplayerid = ReturnUser(tmp);

    if (PlayerInfo[playerid][pAdmin] >= 1)

    {

        if(IsPlayerConnected(giveplayerid))

        {

            if(giveplayerid != INVALID_PLAYER_ID)

            {

        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

    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: /ban [playerid/PartOfName] [reason]");

    return 1;

    }

    new year, month,day;

    getdate(year, month, day);

    format(string, sizeof(string), "AdmCmd: %s a fost banat de %s, Motiv: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);

    BanLog(string);

    format(string, sizeof(string), "AdmCmd: %s a fost banat de %s, Motiv: %s", giveplayer, sendername, (result));

    SendClientMessageToAll(COLOR_LIGHTRED, string);

    PlayerInfo[giveplayerid][pLocked] = 1;

    Ban(giveplayerid);

    return 1;

    }

    }//not connected

    }

    else

    {

    format(string, sizeof(string), "  %d is not an active player.", giveplayerid);

    SendClientMessage(playerid, COLOR_GRAD1, string);

    }

    }

    return 1;

    }[/pawn]

    si:

    [pawn]    if(strcmp(cmd,"/unbanip",true)==0)

    {

    if(PlayerInfo[playerid][pAdmin] >= 3)

    {

        tmp = strtok(cmdtext,idx);

        if(!strlen(tmp))

        {

            SendClientMessage(playerid,COLOR_GRAD1,"USAGE: /unbanip [players ip]");

            return 1;

      }

    format(string,sizeof(string),"unbanip %s",tmp);

    SendRconCommand(string);

    SendRconCommand("reloadbans");

      GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

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

    format(string, 256, "AdmWarning: %s a scos din lista de ban la IP'ul %s", sendername,tmp);

    ABroadCast(COLOR_YELLOW,string,1);

    }

    return 1;

    }

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

    {

        if((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=3)

        {

            tmp = strtok(cmdtext, idx);

            if(!strlen(tmp))

    {

            SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unban [PlayerName_PlayerLastName]");

                return 1;

    }

    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

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

    format(string, 256, "AdmWarning: %s a scos din lista de ban IP'ul %s", sendername, tmp);

    ABroadCast(COLOR_YELLOW,string,1);

    format(string, 256, "AdmWarning: %s a scos din lista de ban IP'ul %s", sendername, tmp);

    printf(string);

    format(string,sizeof(string),"%s.ini",tmp);

    fremove(string);

    SendClientMessage(playerid, COLOR_WHITE, "Player unbanned");

    SendRconCommand(string);

    SendRconCommand("reloadbans");

      GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

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

    }

    return 1;

    }[/pawn]

  6. Salut.Am si eu o problema cu tunarea masinilor.Deci ma duc la Tuning le pun spoiler hidraulice nos si tot ce vreau iar apoi, dupa  ce le parchez toate dispar.Stie cineva cum as putea sa rezolv aceasta problema?

  7. C:\Documents and Settings\Dani\Desktop\LSRP v5\gamemodes\ddd.pwn(6775) : warning 219: local variable "newcar" shadows a variable at a preceding level
    C:\Documents and Settings\Dani\Desktop\LSRP v5\gamemodes\ddd.pwn(6776) : warning 219: local variable "oldcar" shadows a variable at a preceding level
    C:\Documents and Settings\Dani\Desktop\LSRP v5\gamemodes\ddd.pwn(8305) : warning 219: local variable "newcar" shadows a variable at a preceding level
    C:\Documents and Settings\Dani\Desktop\LSRP v5\gamemodes\ddd.pwn(14296) : warning 219: local variable "newcar" shadows a variable at a preceding level
    C:\Documents and Settings\Dani\Desktop\LSRP v5\gamemodes\ddd.pwn(44568) : warning 219: local variable "newcar" shadows a variable at a preceding level
    C:\Documents and Settings\Dani\Desktop\LSRP v5\gamemodes\ddd.pwn(44598) : warning 219: local variable "newcar" shadows a variable at a preceding level
    C:\Documents and Settings\Dani\Desktop\LSRP v5\gamemodes\ddd.pwn(44663) : warning 219: local variable "newcar" shadows a variable at a preceding level
    C:\Documents and Settings\Dani\Desktop\LSRP v5\gamemodes\ddd.pwn(44688) : warning 219: local variable "newcar" shadows a variable at a preceding level
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    Header size:           9760 bytes
    Code size:          1779848 bytes
    Data size:         10328688 bytes
    Stack/heap size:      16384 bytes; estimated max. usage=5266 cells (21064 bytes)
    Total requirements:12134680 bytes
    
    8 Warnings.
    

  8. CreateDynamicObject(870, 1472.8283691406, -1022.6805419922, 23.070247650146, 0, 0, 0);
    #include <a_samp>
    #include <streamer>
    //#include <a_sampmysql>
    #include <core>
    #include <float>
    #include <time>
    #include <file>
    #include <utils>
    #include <morphinc>

  9. C:\Documents and Settings\Dani\Desktop\Stunt Mania\gamemodes\sm.pwn(4258) : error 021: symbol already defined: "CreateDynamicObject"
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    1 Error.
    

    Are cineva idee cum o rezolv?

  10. C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2187) : error 004: function "SafeGivePlayerMoney" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2216) : error 004: function "SafeGivePlayerMoney" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2252) : error 004: function "SafeResetPlayerWeapons" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2253) : error 004: function "SafeGivePlayerWeapon" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2280) : error 004: function "SafeResetPlayerWeapons" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2751) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2762) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2774) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2778) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2790) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2794) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2798) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2802) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2806) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2810) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2814) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2818) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2830) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2834) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2838) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2842) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2846) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2858) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2862) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2866) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Dani\Desktop\LSRP v2\gamemodes\larp.pwn(2878) : error 004: function "PlayerToPoint" is not implemented
    
    Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    26 Errors.
    

    Cum o rezolv :D ?

  11. Cred ca te referi la Raven's Roleplay... vezi ca esti in GM

    AddStaticVehicle

    si trebuie sa vezi care dintre acelea nu iti sunt de folos si le stergi.Din cate am vazut in GameMode, masinile de la factiuni au in fata ceva gen "pdcar="(depinde de factiune)iar cele care sunt pe strazi si le poate conduce oricine nu au asa ceva in fata.

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