Jump to content

kiLLers10

Membru
  • Posts

    92
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by kiLLers10

  1. Problema intalnita (descriere): Deci am o problema la restrictii , orice player care da G , il da afara din masina si zice ca nu face parte din acea factiune . doar la civili pt membri e ok .
    Ero(area / rile) / warning-(ul / urile):
    Liniile de cod / sursa / script-ul(obligatoriu): 

    	if(VLACAR(newcar))
      	{
                if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
                {}
                else//altfel , daca nu este nici lider 1 si nici member 1
                {
                    RemovePlayerFromVehicle(playerid);
              		displayCenterHUDInfo(playerid,  "Nu faci parte din factiunea ~w~Varios Los Aztecas~w~.", 8);
                }
    	}


    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?:  da 

  2. la fel ... creste ... aici este codul complet .

     

             		case 0:
               		{
                		DisablePlayerCheckpoint(playerid);
    					SetPlayerCheckpoint(playerid, 2700.3777, -2388.7659, 13.7271, 3.0);
    					PlayerTextDrawShow(playerid, InfoTD);
    					SetTimer("DistantaTrucker",1000,1);
    					Traseu[playerid] = 1;
    					CPT[playerid] = 2;
         			}
    public DistantaTrucker(playerid, Float:X, Float:Y, Float:Z)
    {
        new Float: fDistance = GetPlayerDistanceFromPoint(playerid, X, Y, Z)/100.0;
    
        new Str[100];
        format(Str, 100, "~w~Mai ai de parcurs~w~ ~n~ ~y~(%0.1f km)", fDistance);
        //TextDrawSetString(InfoTD, Str);
        PlayerTextDrawSetString(playerid, InfoTD, Str);
    }

     

  3. erorare la aceasta linie

    TextDrawSetString(InfoTD[playerid], fDistance);

    D:\eXtraGaming\gamemodes\extragaming.pwn(12231) : error 028: invalid subscript (not an array or too many subscripts): "InfoTD"
    D:\eXtraGaming\gamemodes\extragaming.pwn(12231) : warning 215: expression has no effect
    D:\eXtraGaming\gamemodes\extragaming.pwn(12231) : error 001: expected token: ";", but found "]"
    D:\eXtraGaming\gamemodes\extragaming.pwn(12231) : error 029: invalid expression, assumed zero
    D:\eXtraGaming\gamemodes\extragaming.pwn(12231) : fatal error 107: too many error messages on one line
     

  4. Problema intalnita (descriere): Am o problema la acest script . dar in loc sa imi calculeze distanta din punctul unde sunt eu pana in checkpoint si sa imi scada din distanta mie imi creste .
    Ero(area / rile) / warning-(ul / urile):
    Liniile de cod / sursa / script-ul(obligatoriu):

    forward Distance(playerid, Float:X, Float:Y, Float:Z);
    public Distance(playerid, Float:X, Float:Y, Float:Z)
    {
        new Float: fDistance = GetPlayerDistanceFromPoint(playerid, X, Y, Z)/1000;
    
        new Str[100];
        format(Str, 100, "~w~Mai ai %0.1f km de parcurs)", fDistance);
        //TextDrawSetString(InfoTD, Str);
        PlayerTextDrawSetString(playerid, InfoTD, Str);
    }
    
    Si aici este checkpoint-ul
    
    					SetPlayerCheckpoint(playerid, 2700.3777, -2388.7659, 13.7271, 3.0);
    					PlayerTextDrawShow(playerid, InfoTD);
    					SetTimerEx("Distance", 1000, true, "iiii", playerid,  X, Y, Z);


    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?:

  5. if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey4])
                {
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    new ownvehkey;
                    if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey]) { ownvehkey = PlayerInfo[playerid][pCarKey]; }
                    else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey2]) { ownvehkey = PlayerInfo[playerid][pCarKey2]; }
                    else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey3]) { ownvehkey = PlayerInfo[playerid][pCarKey3]; }
                    else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey4]) { ownvehkey = PlayerInfo[playerid][pCarKey4]; }
                    else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey5]) { ownvehkey = PlayerInfo[playerid][pCarKey5]; }
                    else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey6]) { ownvehkey = PlayerInfo[playerid][pCarKey6]; }
                    else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey7]) { ownvehkey = PlayerInfo[playerid][pCarKey7]; }
                    else { return 1; }
    
    cum vine asta ? 

     

  6. if(dialogid == DIALOG_REPORT)
    	{
    		new playername[MAX_PLAYER_NAME];
        	GetPlayerName(playerid,playername,sizeof(playername));
    	    if(response == 1)
    	    {
    		    if(listitem == 0)
    		    {
    		        ShowPlayerDialog(playerid,DIALOG_REPORTJUCATOR,DIALOG_STYLE_INPUT,"{0066FF}Raporteaza {FFFFFF}un {0066FF}jucator:","Spuneti-ne cateva detalii despre jucator si numele acestuia.","Select","Cancel");
    		        return 1;
    		    }
    		    if(listitem == 1)
    		    {
    		        ShowPlayerDialog(playerid,DIALOG_AJUTOR,DIALOG_STYLE_INPUT,"{0066FF}Ajutor {FFFFFF}/ {0066FF}probleme:","Ce problema aveti?","Select","Cancel");
    		        return 1;
    		    }
    		    if(listitem == 2)
    		    {
    		        ShowPlayerDialog(playerid,DIALOG_BUG,DIALOG_STYLE_INPUT,"{0066FF}Raporteaza {FFFFFF}un BUG:","Despre ce bug este vorba?","Select","Cancel");
    		        return 1;
    		    }
    		    if(listitem == 3)
    		    {
    		        ShowPlayerDialog(playerid,DIALOG_BLOCAT,DIALOG_STYLE_INPUT,"{0066FF}Probleme {FFFFFF}tehnice:","M-am blocat!","Trimite","Cancel");
    		        return 1;
    		    }
    		    if(listitem == 4)
    		    {
    		        ShowPlayerDialog(playerid,DIALOG_VAD,DIALOG_STYLE_INPUT,"{0066FF}Probleme {FFFFFF}tehnice:","Nu vad nimic!","Trimite","Cancel");
    		        return 1;
    		    }
    		    if(listitem == 5)
    		    {
    		        ShowPlayerDialog(playerid,DIALOG_PIERDUT,DIALOG_STYLE_INPUT,"{0066FF}Probleme {FFFFFF}tehnice:","Scrie mai jos TOT MESAJUl in functie de problema ta.","Trimite","Cancel");
    		        return 1;
    		    }
    		    if(listitem == 6)
    		    {
    		        ShowPlayerDialog(playerid,DIALOG_ALTA,DIALOG_STYLE_INPUT,"{0066FF}Alte {FFFFFF}probleme!:","Scrie mai jos TOT MESAJUl in functie de problema.","Trimite","Cancel");
    		        return 1;
    		    }
     		}
     		if(response == 0)
     		{
     		    ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi");
     		    return 1;
     		}
    	}
    	if(dialogid == DIALOG_REPORTJUCATOR)
    	{
    	    if(response == 1)
    	    {
                new string[128];
    			SendClientMessage(playerid,COLOR_WHITE,"SERVER: Jucatorul a fost raportat , iar in scurt timp un administrator se va ocupa de acesta.");
    			format(string, sizeof(string), "[REPORT]: {7a0f27}%s{FFFFFF} a raportat un jucator! : {7a0f27}({FFFFFF} %s {7a0f27})",PlayerName(playerid),inputtext);
    			RBroadCast(COLOR_LIGHTBLUE,string,1);
    			SetPVarInt(playerid,"Report",1);
    		}
    		if(response == 0)
    		{
    		    ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi");
    		}
    	}
    	if(dialogid == DIALOG_AJUTOR)
    	{
    	    if(response == 1)
    	    {
                new string[128];
    			SendClientMessage(playerid,COLOR_WHITE,"SERVER: Problema dvs. a fost trimisa catre un administrator.");
    			format(string, sizeof(string), "[REPORT]: {7a0f27}%s{FFFFFF} are o problema! : {7a0f27}({FFFFFF} %s {7a0f27})",PlayerName(playerid),inputtext);
    			RBroadCast(COLOR_LIGHTBLUE,string,1);
    			SetPVarInt(playerid,"Report",1);
    		}
    		if(response == 0)
    		{
    		    ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi");
    		}
    	}
    	if(dialogid == DIALOG_BUG)
    	{
    	    if(response == 1)
    	    {
                new string[128];
    			SendClientMessage(playerid,COLOR_WHITE,"SERVER: BUG-ul gasit de dvs. a fost trimis catre un administrator pentru analizare! Iti multumim!");
    			format(string, sizeof(string), "[REPORT]: {7a0f27}%s{FFFFFF} a gasit un bug! : {7a0f27}({FFFFFF} %s {7a0f27})",PlayerName(playerid),inputtext);
    			RBroadCast(COLOR_LIGHTBLUE,string,1);
    			SetPVarInt(playerid,"Report",1);
    		}
    		if(response == 0)
    		{
    		    ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi");
    		}
    	}
    	if(dialogid == DIALOG_BLOCAT)
    	{
    	    if(response == 1)
    	    {
                new string[128];
    			SendClientMessage(playerid,COLOR_WHITE,"SERVER: Reportul M-AM BLOCAT a fost trimis!");
    			format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF}  s-a blocat!)",PlayerName(playerid),inputtext);
    			RBroadCast(COLOR_LIGHTBLUE,string,1);
    			SetPVarInt(playerid,"Report",1);
    		}
    		if(response == 0)
    		{
    		    ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi");
    		}
    	}
    	if(dialogid == DIALOG_VAD)
    	{
    	    if(response == 1)
    	    {
                new string[128];
    			SendClientMessage(playerid,COLOR_WHITE,"SERVER: Reportul NU VAD NIMIC a fost trimis!");
    			format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} nu vede nimic!)",PlayerName(playerid),inputtext);
    			RBroadCast(COLOR_LIGHTBLUE,string,1);
    			SetPVarInt(playerid,"Report",1);
    		}
    		if(response == 0)
    		{
    		    ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi");
    		}
    	}
    	if(dialogid == DIALOG_PIERDUT)
    	{
    	    if(response == 1)
    	    {
                new string[128];
    			SendClientMessage(playerid,COLOR_WHITE,"SERVER: Reportul dumneavostra a fost trimis!");
    			format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} a pierdut un bun personal! : {7a0f27}({FFFFFF} %s {7a0f27})",PlayerName(playerid),inputtext);
    			RBroadCast(COLOR_LIGHTBLUE,string,1);
    			SetPVarInt(playerid,"Report",1);
    		}
    		if(response == 0)
    		{
    		    ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi");
    		}
    	}
    	if(dialogid == DIALOG_ALTA)
    	{
    	    if(response == 1)
    	    {
                new string[128];
    			SendClientMessage(playerid,COLOR_WHITE,"SERVER: Reportul dumneavostra a fost trimis!");
    			format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} are o problema! : {7a0f27}({FFFFFF} %s {7a0f27})",PlayerName(playerid),inputtext);
    			RBroadCast(COLOR_LIGHTBLUE,string,1);
    			SetPVarInt(playerid,"Report",1);
    		}
    		if(response == 0)
    		{
    		    ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi");
    		}
    	}
    	if(dialogid == DIALOG_INAPOI)
    	{
    	    if(response == 0)
    	    {
    			ShowPlayerDialog(playerid,DIALOG_REPORT,DIALOG_STYLE_LIST,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS","{0066FF}1.{FFFFFF}Raporteaza un jucator.\n{0066FF}2.{FFFFFF}Ajutor / Probleme.\n{0066FF}3.{FFFFFF}Raporteaza un BUG.\n{0066FF}4.{FFFFFF}M-am blocat.\n{0066FF}5.{FFFFFF}Nu vad nimic.\n{0066FF}6.{FFFFFF}Am pierdut un bun personal.\n{0066FF}7.{FFFFFF}Alte probleme.","Select","Cancel");
    	    }
    	    return 1;
    	}

    uite incearca asa

  7. Problema intalnita (descriere): Am o problema la acest script . imi arata distanta pana la checkpoint dar nu scade deloc . ramane asa
    Ero(area / rile) / warning-(ul / urile):
    Liniile de cod / sursa / script-ul(obligatoriu): 

            Float: fDistance = GetPlayerDistanceFromPoint(playerid, 2700.3777, -2388.7659, 13.7271);
    		new playerState = GetPlayerState(playerid);
      		if (playerState == PLAYER_STATE_DRIVER)
      		{
        		if(!response) return 1;
          		switch(listitem)
            	{
             		case 0:
               		{
                		DisablePlayerCheckpoint(playerid);
    					SetPlayerCheckpoint(playerid, 2700.3777, -2388.7659, 13.7271, 3.0);
    				    format(string, sizeof(string), "~y~Mai ai~w~~h~~n~ %0.2f metri pana la destinatie.", fDistance);
    			     	PlayerTextDrawSetString(playerid, InfoTD, string);
    			     	PlayerTextDrawShow(playerid, InfoTD);
    					Traseu[playerid] = 1;
    					CPT[playerid] = 2;
         			}


    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?:da

  8. Problema intalnita (descriere): Deci am acest script care lam pus sa iti dea freeze 4 secunde pana se incarca obiectele . dar dupa ce imi da freeze ramane asa .
    Ero(area / rile) / warning-(ul / urile): nu primesc
    Liniile de cod / sursa / script-ul(obligatoriu): 

    					freeze[playerid] = SetTimerEx("Freeze",4000, false, "i", playerid);
    			 		TogglePlayerControllable(playerid,0);
    					SetTimerEx("LoadingObject", 2000, false, "i", playerid);
    					GameTextForPlayer(playerid, "~w~Loading Object", 3000, 5);


    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?:  da

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