Mr.Kiss Posted April 5, 2012 Report Posted April 5, 2012 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]
tantan_andrey Posted April 5, 2012 Report Posted April 5, 2012 1. Problema 1Ai 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 2Uite 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
Mr.Kiss Posted April 6, 2012 Author Report Posted April 6, 2012 1. Problema 1Ai 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 2Uite 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
Mr.Kiss Posted April 6, 2012 Author Report Posted April 6, 2012 Scuze dar mai am o problema.Cand deschid server-ul imi trebuie 0.3d RC7 sa intru pe server . Dc?\
Mr.Kiss Posted April 8, 2012 Author Report Posted April 8, 2012 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?
Question
Mr.Kiss
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]
4 answers to this question
Recommended Posts