-
Posts
10 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by FloriNNN
-
-
1 hour ago, iSkull said:
Crashdetect se pune primul la plugins, posibil sa nu ai anumite Microsoft visual c++ instalate
am de la 2005 pana la ultimul Microsoft Visual si tot la fel, aceleasi erori primesc..
-
1 hour ago, Tefyuu said:
poate sunt pluginurile vechi incearca sa inlocuiesti cu unele mai noi si acolo la plugins in server.cfg pune si tu .dll la toate (daca e pe localhost) iar daca e pe host pui .so la toate
le-am inlocuit cu alte versiuni mai noi si tot la fel..
-
Am aceste probleme cu pluginurile, tin sa mentionez ca am descarcat si versiuni mai noi si mai vechi si primesc acelasi lucru
----------
Loaded log file: "server_log.txt".
----------SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
Server Plugins
--------------
Loading plugin: sscanf
Failed.
Loading plugin: mysql
Failed.
Loading plugin: Whirlpool==================
Whirlpool loaded
==================
Loaded.
Loading plugin: crashdetect
Failed.
Loading plugin: nativechecker
Loaded.
Loaded 2 plugins.
Started server on port: 7777, with maxplayers: 50 lanmode is ON.
Filterscripts
---------------
Loaded 0 filterscripts.Error: Function not registered: 'SSCANF_Init'
Error: Function not registered: 'SSCANF_IsConnected'
Error: Function not registered: 'SSCANF_Join'
Error: Function not registered: 'SSCANF_Leave'
Error: Function not registered: 'mysql_connect'
Error: Function not registered: 'mysql_log'
Error: Function not registered: 'mysql_errno'
Error: Function not registered: 'mysql_format'
Error: Function not registered: 'mysql_tquery'
Error: Function not registered: 'mysql_query'
Error: Function not registered: 'cache_get_row_count'
Error: Function not registered: 'cache_delete'
Error: Function not registered: 'cache_get_field_content_int'
Error: Function not registered: 'cache_get_field_content'
Error: Function not registered: 'sscanf'
Script[gamemodes/svbesit.amx]: Run time error 19: "File or function is not found"
Number of vehicle models: 0
SERVER.CFG
echo Executing Server Config...
lanmode 1
rcon_password parola
maxplayers 50
port 7777
hostname SA-MP 0.3 Server
gamemode0 svbesit 1
announce 0
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
language Romana
plugins sscanf mysql Whirlpool crashdetect nativechecker -
Salut, am si eu o problema la speedometru, mai exact textdraw-ul facut de mine apare unde l am pus si nu se modifica viteza si s-a mai pus un speedometru care arata si cand merg pe jos si imi arata viteza cu care merg dar nu in masina si se suprapune pe alt textdraw si nu mai apare celalt textdraw
forward Speed(); public Speed() { new string[50]; for(new i = 0; i < MAX_PLAYERS; i++) { if(!IsPlayerInVehicle(i, GetPlayerVehicleID(i))) GetPlayerSpeed(i); format(string, sizeof(string), "~y~Viteza:~g~%d~w~km/h", GetPlayerSpeed(i)); TextDrawShowForPlayer(i, Text:SPEedometRU[i]); PlayerTextDrawSetString(i, PlayerText:SPEedometRU[i], string); } return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { new string[64]; if(newstate == PLAYER_STATE_DRIVER) { format(string, sizeof(string), "~y~Viteza:~g~%d~w~km/h", GetPlayerSpeed(playerid)); TextDrawSetString(Text:SPEedometRU[playerid], string); TextDrawShowForPlayer(playerid, Text:SPEedometRU[playerid]); return 1; } if(newstate == PLAYER_STATE_ONFOOT) { TextDrawHideForPlayer(playerid, Text:SPEedometRU[playerid]); return 1; } return 1; }
-
Salut, azi o sa va invat cum sa faceti comanda "/closestcar" dar inainte sa incep vreau sa spun ca decat comanda este facuta de mine si este cv simplu si daca topic-ul nu este ok o sa il sterg.
Avem nevoie de stock care este mai jos si de zCMD.
astea le puneti la inceputul GM-ului daca nu o aveti. #include <zcmd> #define COLOR_LIGHTRED 0xFF6347AA// este rosu deschis #define COLOR_GREEN 0x0ea142FF// este verde inchis Stock-ul il puneti unde vreti si vreau sa spun ca acesta este luat din GM-ul BigZone stock GetClosestVehicle2(playerid, Float:dis) { new Float:X, Float:Y, Float:Z; if(GetPlayerPos(playerid, X, Y, Z)) { new vehicleid = INVALID_VEHICLE_ID; for(new v, Float:temp, Float:VX, Float:VY, Float:VZ; v != MAX_VEHICLES; v++) { if(GetVehiclePos(v, VX, VY, VZ)) { VX -= X, VY -= Y, VZ -= Z; temp = VX * VX + VY * VY + VZ * VZ; if(temp < dis) dis = temp, vehicleid = v; } } dis = floatpower(dis, 0.5); return vehicleid; } return INVALID_VEHICLE_ID; }
Acum o sa facem comanda:
CMD:closestcar(playerid, params[]) { // aici deschidem comanda if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_GREEN, "Nu poti folosi comanda pentru ca nu esti admin!"); // aici verificam daca este admin, daca aveti un GM de pe net o sa aveti if(PlayerInfo[playerid][pAdmin]>1) if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Esti deja intr-o masina!"); // aici verificam daca se afla intr-o masina if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT){ new cCar = GetClosestVehicle2(playerid, 50); // GetClosestVehicle2 este stock-ul si 50 reprezinta distanta de la care poate fi pus in masina, daca vreti sa modificatati distanta trebuie sa puneti de ex: vreau sa fie maxim 2 metri asa ca trebuie sa punem 20. PutPlayerInVehicle(playerid, cCar, 0); // aici il punem in masina pe cel care a folosit comanda, 0 este locul soferului } else SendClientMessage(playerid, COLOR_LIGHTRED, "Nu esti in jurul unei masini!"); // aici ii dam un mesaj ca nu se afla in jurul unei masini. return 1; }// aici inchidem comanda
-
T/C multumesc mult @[El.Capo]
- 1
-
@[El.Capo] tot nu merge, aceasi eroare
-
@FiveGame new PlayerJob[MAX_PLAYERS];
-
Salut am inceput si eu recent un GM de la 0 si nu imi pot da seama cum sa rezolv acea eroare mai exact error 002: only a single statement (or expression) can follow each "case"
Eroarea se afla la linia asta: else SendClientMessage(playerid, COLOR_WHITE, "Nu esti in jurul unui job");
cod:
CMD:getjob(playerid, params[]){
if(PlayerJob[playerid]) return SendClientMessage(playerid, COLOR_WHITE, "Ai deja un job!");
new string[256];
switch(PlayerJob[playerid]){
case 0: {
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1764.96191, -2050.68042, 14.96930)){
PlayerJob[playerid] = 1;
format(string, sizeof(string), "Job-ul tau este acum %s.Foloseste comanda /startwork pentru a munci!", JOB_NAME1);
SendClientMessage(playerid, COLOR_CYAN, string);
}
}
case 1: {
if(IsPlayerInRangeOfPoint(playerid, 5.0, 854.8568,-605.1971,18.4219)){
PlayerJob[playerid] = 1;
format(string, sizeof(string), "Job-ul tau este acum %s.Foloseste comanda /startwork pentru a munci!", JOB_NAME2);
SendClientMessage(playerid, COLOR_CYAN, string);
}
}
else SendClientMessage(playerid, COLOR_WHITE, "Nu esti in jurul unui job");
return 1;
}
Probleme pluginuri
in Discuţii scripting
Posted
Mersi, a functionat cele cu x86 T/C