Jump to content

heker

Membru
  • Posts

    617
  • Joined

  • Last visited

    Never

Posts posted by heker

  1. Salut, am si eu o problema la host.

    1.Am luat host la atocs si am versiunea 0.3a, incerc sa bag 0.3b, am facut in felul urmator:

    Am inlocuit fisierele :

    samp03svr

    samp-npc

    announce

    cu cele de pe linux X86 de pe sa-mp.ro

    cand dau restart din gcp imi apare cu rosu si scrie server down

  2. 1.Probleme Godfather

    2. Uite comanda roadblock

    //--------------------------------=[Roadblock]=-------------------------------//
    	if(strcmp(cmdtext, "/roadblock", true)==0 || strcmp(cmdtext, "/rb", true)==0)
    	{
    		if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) return SendClientMessage(playerid, COLOR_GREY, "You are not a cop!");
    		if (PlayerInfo[playerid][pRoadblock] != 0) return SendClientMessage(playerid, COLOR_GREY, "You can only deploy 1 roadblock at a time, type /rrb to remove your existing one.");
    		if (roadblocktimer != 0) return SendClientMessage(playerid, COLOR_GREY, "Please wait before trying to spawn another roadblock!");
    		new Float:X, Float:Y, Float:Z, Float:A;
    		GetPlayerPos(playerid, X, Y, Z);
    		GetPlayerFacingAngle(playerid, A);
    		PlayerInfo[playerid][pRoadblock] = CreateObject(981, X, Y, Z, 0.0, 0.0, A+180);
    		SetPlayerPos(playerid, X, Y, Z+4);
    		GameTextForPlayer(playerid, "~w~Roadblock ~r~Placed", 5000, 5);
    		SendClientMessage(playerid, COLOR_GREEN, "Roadblock deployed successfully, type /rrb or /roadunblock to remove it.");
    		roadblocktimer = 1;
    		GetPlayerName(playerid, sendername, sizeof(sendername));
    		format(string, sizeof(string), "HQ: A roadblock has been deployed by %s, it has been marked on the map by a checkpoint.", sendername);
    		for(new i = 0; i < MAX_PLAYERS; i++)
    		{
    			if(IsPlayerConnected(i))
    			{
    				if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
    				{
    					SetPlayerCheckpoint(playerid, X, Y, Z-10, 1.0);
    					SendClientMessage(i, TEAM_BLUE_COLOR, string);
    					if (PlayerInfo[i][pRank] >= 3 && PlayerInfo[i][pMember] || PlayerInfo[i][pLeader] == 1)
    					{
    						SendClientMessage(i, COLOR_YELLOW, "You can remove all roadblocks by typing /rrball");
    					}
    				}
    			}
    		}
    		SetTimer("ResetRoadblockTimer", 60000, false);
    		return 1;
    	}
    
    	if(strcmp(cmdtext, "/roadunblock", true)==0 || strcmp(cmdtext, "/rrb", true)==0)
    	{
    		if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1)
    		{
    			SendClientMessage(playerid, COLOR_GREY, "You are not a cop!");
    			return 1;
    		}
    		if (PlayerInfo[playerid][pRank] < 3)
    		{
    			SendClientMessage(playerid, COLOR_GREY, "You have to be rank 3 to use this command!");
    			return 1;
    		}
    		if (PlayerInfo[playerid][pRoadblock] == 0)
    		{
    			SendClientMessage(playerid, COLOR_GREY, "You haven't deployed a roadblock!");
    			return 1;
    		}
    		RemoveRoadblock(playerid);
    		SendClientMessage(playerid, COLOR_GREEN, "Roadblock removed successfully.");
    		return 1;
    	}
    

    3. Specifica ce face comanda /mask

  3. Am rezolvat cu asta am mai dezvoltato ;)

        if(strcmp(cmd,"/tow",true)==0)
        {
            if(IsPlayerConnected(playerid))
            {
                if(PlayerInfo[playerid][pJob] == 7)
                {
                    if(IsPlayerInAnyVehicle(playerid))
                    {
                        new m = GetVehicleModel(GetPlayerVehicleID(playerid));
                        if (m == 525 || m == 552)
                            {
                                if(GetPlayerState(playerid)==2)
                                {
                                new Float:pX,Float:pY,Float:pZ;
                                GetPlayerPos(playerid,pX,pY,pZ);
                                new Float:vX,Float:vY,Float:vZ;
                                new Found=0;
                                new vid=0;
                                while((vid<MAX_VEHICLES)&&(!Found))
                                {
                                       vid++;
                                       GetVehiclePos(vid,vX,vY,vZ);
                                       if ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
                                    {
                                           Found=1;
                                           if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
                                           {
                                               DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
                                           }
                                           else
                                           {
                                            AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
                                        }
                                     }
                                 }
                                if(!Found)
                                 {
                                       SendClientMessage(playerid,0xFFFF00AA,"There is no car in range.");
                                   }
                            }
                            else
                            {
                                SendClientMessage(playerid, COLOR_GRAD2, "You need to be the driver!");
                                return 1;
                            }
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD2, "You need to be in a Tow truck to use this!");
                            return 1;
                        }
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GRAD2, "You need to be in a vehicle to do this!");
                        return 1;
                    }
                }
                else
                {
                    SendClientMessage(playerid,COLOR_GRAD2,"You need to be a Mechanic to use this!");
                    return 1;
                }
            }
            return 1;
        }

  4. Da viorel am trecut si la probleme godfather am mai dat si un quote dai degeaba :(

    Sa rezolv si eu problema asta s dai close te rog...Am muncit mult la tow car company credema :(

    Revin dupa 12 ore cu un quote sa nu se zica ca am facut dublu post bag comanda:

    //tractare vehicule
        if ( strcmp ( cmdtext , "/ad", true)==0){
    
        new Float:pX,Float:pY,Float:pZ;
        GetPlayerPos(playerid,pX,pY,pZ);
        new Float:vX,Float:vY,Float:vZ;
        new Found=0;
        new vid=0;
        while((vid<MAX_VEHICLES)&&(!Found))
        {
        vid++;
        GetVehiclePos(vid,vX,vY,vZ);
        if  ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
        {
        Found=1;
        if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
        {
        DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid,0xFFFF00AA,"Ai deatasat masina");
        }else
        {
        AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
        new string[256];
        format(string,256,"Acum tu tractezi un %s",VehicleName[GetVehicleModel(vid)-400]);
        SendClientMessage(playerid,0xFFFF00AA,string);
        }
        }
        }
        if  (!Found)
        {
        SendClientMessage(playerid,0xFFFF00AA,"Nu am gasit nici un vehicul,mergeti mai aproape de masina.");
        }
        return 1;
    }
    ///////

    si imi da aceste erori:

    C:\Documents and Settings\Gaby\Desktop\MrIllusion\MrIllusion\gamemodes\eRP.pwn(23716) : warning 219: local variable "string" shadows a variable at a preceding level

    C:\Documents and Settings\Gaby\Desktop\MrIllusion\MrIllusion\gamemodes\eRP.pwn(23717) : error 017: undefined symbol "VehicleName"

    C:\Documents and Settings\Gaby\Desktop\MrIllusion\MrIllusion\gamemodes\eRP.pwn(23717) : warning 215: expression has no effect

    C:\Documents and Settings\Gaby\Desktop\MrIllusion\MrIllusion\gamemodes\eRP.pwn(23717) : error 001: expected token: ";", but found "]"

    C:\Documents and Settings\Gaby\Desktop\MrIllusion\MrIllusion\gamemodes\eRP.pwn(23717) : error 029: invalid expression, assumed zero

    C:\Documents and Settings\Gaby\Desktop\MrIllusion\MrIllusion\gamemodes\eRP.pwn(23717) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.

    Mai revin cu un quote peste 12 ore si fara ajutor :(

  5. =-" post="43071" timestamp="1286827670"]

    Ce rost are daca e aceeasi problema?

    Da viorel am trecut si la probleme godfather am mai dat si un quote dai degeaba :(

    Sa rezolv si eu problema asta s dai close te rog...Am muncit mult la tow car company credema :(

    Revin dupa 12 ore cu un quote sa nu se zica ca am facut dublu post bag comanda:

    //tractare vehicule
        if ( strcmp ( cmdtext , "/ad", true)==0){
    
        new Float:pX,Float:pY,Float:pZ;
        GetPlayerPos(playerid,pX,pY,pZ);
        new Float:vX,Float:vY,Float:vZ;
        new Found=0;
        new vid=0;
        while((vid<MAX_VEHICLES)&&(!Found))
        {
        vid++;
        GetVehiclePos(vid,vX,vY,vZ);
        if  ((floatabs(pX-vX)<7.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
        {
        Found=1;
        if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
        {
        DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid,0xFFFF00AA,"Ai deatasat masina");
        }else
        {
        AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
        new string[256];
        format(string,256,"Acum tu tractezi un %s",VehicleName[GetVehicleModel(vid)-400]);
        SendClientMessage(playerid,0xFFFF00AA,string);
        }
        }
        }
        if  (!Found)
        {
        SendClientMessage(playerid,0xFFFF00AA,"Nu am gasit nici un vehicul,mergeti mai aproape de masina.");
        }
        return 1;
    }
    ///////

    si imi da aceste erori:

    C:\Documents and Settings\Gaby\Desktop\MrIllusion\MrIllusion\gamemodes\eRP.pwn(23716) : warning 219: local variable "string" shadows a variable at a preceding level

    C:\Documents and Settings\Gaby\Desktop\MrIllusion\MrIllusion\gamemodes\eRP.pwn(23717) : error 017: undefined symbol "VehicleName"

    C:\Documents and Settings\Gaby\Desktop\MrIllusion\MrIllusion\gamemodes\eRP.pwn(23717) : warning 215: expression has no effect

    C:\Documents and Settings\Gaby\Desktop\MrIllusion\MrIllusion\gamemodes\eRP.pwn(23717) : error 001: expected token: ";", but found "]"

    C:\Documents and Settings\Gaby\Desktop\MrIllusion\MrIllusion\gamemodes\eRP.pwn(23717) : error 029: invalid expression, assumed zero

    C:\Documents and Settings\Gaby\Desktop\MrIllusion\MrIllusion\gamemodes\eRP.pwn(23717) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.

  6. scz iar de dublu post.dak am incurcat cu ceva cu aceste duble posturi rog un administrator sa imi dea warn sau ban ce considera el

    va rog ajutatima si pe mn k din cauza la alea 2 warninguri nu merg unele comenzi de pe sv

    help pls

    Frate si eu am avut BlodZ dar este plin de buguri o sa te convingi pe parcurs ;)

  7. GG Viorel 7 erori =))

    C:\Documents and Settings\Gaby\Desktop\Zonek RolePlay\Zonek RolePlay\filterscripts\LSPDG.pwn(6) : error 017: undefined symbol "MAX_PLAYERS"

    C:\Documents and Settings\Gaby\Desktop\Zonek RolePlay\Zonek RolePlay\filterscripts\LSPDG.pwn(6) : error 009: invalid array size (negative, zero or out of bounds)

    C:\Documents and Settings\Gaby\Desktop\Zonek RolePlay\Zonek RolePlay\filterscripts\LSPDG.pwn(304) : error 017: undefined symbol "COLOR_GREY"

    C:\Documents and Settings\Gaby\Desktop\Zonek RolePlay\Zonek RolePlay\filterscripts\LSPDG.pwn(310) : error 010: invalid function or declaration

    C:\Documents and Settings\Gaby\Desktop\Zonek RolePlay\Zonek RolePlay\filterscripts\LSPDG.pwn(312) : error 010: invalid function or declaration

    C:\Documents and Settings\Gaby\Desktop\Zonek RolePlay\Zonek RolePlay\filterscripts\LSPDG.pwn(317) : error 010: invalid function or declaration

    C:\Documents and Settings\Gaby\Desktop\Zonek RolePlay\Zonek RolePlay\filterscripts\LSPDG.pwn(320) : error 010: invalid function or declaration

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    7 Errors.

    Mai pe scurt ai sa imi dai niste gate la lspd bune fara buguri :)

  8. Asa am incercat si eu :P si imi da erorile asetea

    C:\Documents and Settings\Gaby\Desktop\Zonek RolePlay\Zonek RolePlay\filterscripts\LSPDG.pwn(43) : error 017: undefined symbol "PlayerInfo"

    C:\Documents and Settings\Gaby\Desktop\Zonek RolePlay\Zonek RolePlay\filterscripts\LSPDG.pwn(43) : warning 215: expression has no effect

    C:\Documents and Settings\Gaby\Desktop\Zonek RolePlay\Zonek RolePlay\filterscripts\LSPDG.pwn(43) : error 001: expected token: ";", but found "]"

    C:\Documents and Settings\Gaby\Desktop\Zonek RolePlay\Zonek RolePlay\filterscripts\LSPDG.pwn(43) : error 029: invalid expression, assumed zero

    C:\Documents and Settings\Gaby\Desktop\Zonek RolePlay\Zonek RolePlay\filterscripts\LSPDG.pwn(43) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.

  9. Posteaza comanda si te ajut :)

        if (strcmp("/garaj", cmdtext, true, 10) == 0)
        {
        if(IsPlayerInRangeOfPoint(playerid, 11.0, 1589.02050781,-1638.08789062,14.95541191))
        MoveObject(Subterranea,1589.02050781,-1638.08789062,8.34928703, 3.0);
        SendClientMessage(playerid, 0xFFE13FF, "Poarta sa deschis, in 5 secunde se inchide.");
        SetTimer("cerrar1",5000,false);
    
        return 1;
        }

  10. Leam facut se deschid perfect dar problema este ca daca sunt civil si scriu /bariera si atunci se deschide si stiu ca nu este problema de la MTA dar am zis asa ca sa numai trec la godfather ca mi se dadea raspuns peste 10 ani :P

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