Jump to content
  • 0

2 Probleme [ Ajutor ]


Mr.Kiss

Question

Prima problema este cand deschid server-ul imi zice asta : Script[gamemode/shr.amx] : Run Time Error 19 : '' File or function is not found''

Si a doua este problema cu /fcr :

[pawn] if(strcmp(cmd, "/factioncarrespawn", true) == 0 || strcmp(cmd, "/fcr", true) == 0) // by Mr.Kiss

{

    if(IsPlayerConnected(playerid))

    {

        if(PlayerInfo[playerid][pAdmin] < 4)

{

    SendClientMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");

    return 1;

}

new bool:unwanted[MAX_VEHICLES];

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

    {

            if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }

    }

for(new car = 1; car <= 1850; car++)

{

if(!unwanted[car]) SetVehicleToRespawn(car);

}

format(string, sizeof(string), "Toate Masinile Factiunii au fost Respawnate de AdMiNuL : %s.", sendername);

BroadCast(0x5EFB6EFF,string);

format(string, sizeof(string), "[ADMIN]: %s A dat respawn la masinile factiunii.", sendername);

ABroadCast(COLOR_LIGHTRED,string, 5);

GameTextForAll("~w~Masinile Factiunii au fost~n~~g~Respawnate!",5000,1);

new y, m, d;

new h,mi,s;

getdate(y,m,d);

gettime(h,mi,s);

format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Masinilie Factiuni",d,m,y,h,mi,s,sendername);

AdminLog(string);

}

return 1;

}[/pawn]

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

1. Problema 1

Ai pus tot ce trebuie in folderul Scriptfiles?

Ai pus tot ce trebuie in server.cfg la Plugins? pe windows .dll pe linux .so?

2. Problema 2

Uite incearca comanda asta:

	if(strcmp(cmd, "/respawnfactioncars", true) == 0 || strcmp(cmd, "/rfc", true) == 0) // edit by LuciaN
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] >= 6)
			{
				SendClientMessageToAll(COLOR_WHITE,"[AdminCommand]: All Cars have respawmed in 10 seconds");
				SetTimer("Respawncars", 10000, 0);
			}
			else
			{
			    SendClientMessage(playerid, COLOR_WHITE, "You have not access to use this command");
			    return 1;
			}
		}
		return 1;
	}

Sa iti dea Deumnezeu sanatate TzAkS

Link to comment
Share on other sites

1. Problema 1

Ai pus tot ce trebuie in folderul Scriptfiles?

Ai pus tot ce trebuie in server.cfg la Plugins? pe windows .dll pe linux .so?

2. Problema 2

Uite incearca comanda asta:

	if(strcmp(cmd, "/respawnfactioncars", true) == 0 || strcmp(cmd, "/rfc", true) == 0) // edit by LuciaN
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] >= 6)
			{
				SendClientMessageToAll(COLOR_WHITE,"[AdminCommand]: All Cars have respawmed in 10 seconds");
				SetTimer("Respawncars", 10000, 0);
			}
			else
			{
			    SendClientMessage(playerid, COLOR_WHITE, "You have not access to use this command");
			    return 1;
			}
		}
		return 1;
	}

Mersi man . Am rezolvat problemele :X Mersi multt

Link to comment
Share on other sites

Scuze dar mai am o problema.

Cand deschid server-ul imi trebuie 0.3d RC7 sa intru pe server . Dc?

\

Scuze de dublu-post . Am rezolvat problema asta acuma am alta mai grava

Cand deschid usi/porti , mi se deschid aiurea , adica se invart si cad ... ce ar trebui sa fac?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.