-
Posts
63 -
Joined
-
Last visited
Sorin Dridea's Achievements
Noob (1/14)
2
Reputation
-
Frate ziceti ca pot sa fac cmd:servicetaxi fara space intre ele imi dati si mie scriptul ca asta e deja prea gra pentru mine...
-
Salut as vrea si eu comanda "/service" sub forma de CMD nu se strcmp deoarece nu mai functioneaza de cand am bagat mesajul automat ce te avertizeaza cand gresesti o comanda. Am incercat sa o mut de pe strcmp pe CMD dar in joc cand dau /service taxi imi tot apare mesajul si nu se aplica comanda -> http://i.imgur.com/noXTd6z.png Aici este strcmp care nu merge deloc de cand am bagat mesajul la public OnPlayerCommandPerformed(playerid, cmdtext[], success) if(strcmp(cmd, "/service", true) == 0) { if(IsPlayerConnected(playerid)) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "{00FF00}Folosire: {FFFFFF}/service [name]"); SendClientMessage(playerid, COLOR_GREY, "Available names: Taxi, Medic"); return 1; } if(strcmp(x_nr,"taxi",true) == 0) { if(TaxiDrivers < 1) { SendClientMessage(playerid, COLOR_GREY, "There are no taxi drivers on duty at the moment, try again later!"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); foreach(Player, a) { if(playerVariables[a][pGroup] == 14) { new Float: X, Float: Y,Float: Z; GetPlayerPos(playerid, X,Y,Z); format(string, sizeof(string), "%s [%d] has called for a taxi, a checkpoint has been set on your map.", sendername,playerid); SetPlayerCheckpoint(a, X, Y, Z, 5); } } SendToGroup(14, COLOR_TEAL, string); SendToGroup(16, COLOR_TEAL, string); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a taxi, wait at your current position."); TaxiCall = playerid; return 1; } else if(strcmp(x_nr,"medic",true) == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); foreach(Player, a) { if(playerVariables[a][pGroup] == 4) { new Float: X, Float: Y,Float: Z; GetPlayerPos(playerid, X,Y,Z); format(string, sizeof(string), "%s [%d] has called for a medic, a checkpoint has been set on your map.", sendername,playerid); SetPlayerCheckpoint(a, X, Y, Z, 5); } } SendToGroup(4, COLOR_TEAL, string); SendToGroup(17, COLOR_TEAL, string); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a medic, wait at your current position."); MedicCall = playerid; return 1; } else { SendClientMessage(playerid, COLOR_GREY, "Unknown service name!"); return 1; } } success = 1; return 1; } return 1; }
-
Poi daca e poti sa ma ajuti eu am incercat sa o schimb dar nu ma prea pricep la scripting.. Si un amic a incercat dar tot asa.. nu mrege..
-
Daca poti sa imi lasi comenzile sub forma de cmd, macar cu taxi sau medic..
-
Salut, as vrea si eu sa mut de pe strcmp comanda service pentru taxi, medic si mecanic in cmd:service normala, am incercat si eu si un prieten dar nu iese.. ma poate ajuta cineva? if(strcmp(cmd, "/service", true) == 0) { if(IsPlayerConnected(playerid)) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "{00FF00}Folosire: {FFFFFF}/service [name]"); SendClientMessage(playerid, COLOR_GREY, "Available names: Taxi, Medic"); return 1; } if(strcmp(x_nr,"taxi",true) == 0) { if(TaxiDrivers < 1) { SendClientMessage(playerid, COLOR_GREY, "There are no taxi drivers on duty at the moment, try again later!"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); foreach(Player, a) { if(playerVariables[a][pGroup] == 14) { new Float: X, Float: Y,Float: Z; GetPlayerPos(playerid, X,Y,Z); format(string, sizeof(string), "%s [%d] has called for a taxi, a checkpoint has been set on your map.", sendername,playerid); SetPlayerCheckpoint(a, X, Y, Z, 5); } } SendToGroup(14, COLOR_TEAL, string); SendToGroup(16, COLOR_TEAL, string); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a taxi, wait at your current position."); TaxiCall = playerid; return 1; } else if(strcmp(x_nr,"medic",true) == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); foreach(Player, a) { if(playerVariables[a][pGroup] == 4) { new Float: X, Float: Y,Float: Z; GetPlayerPos(playerid, X,Y,Z); format(string, sizeof(string), "%s [%d] has called for a medic, a checkpoint has been set on your map.", sendername,playerid); SetPlayerCheckpoint(a, X, Y, Z, 5); } } SendToGroup(4, COLOR_TEAL, string); SendToGroup(17, COLOR_TEAL, string); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a medic, wait at your current position."); MedicCall = playerid; return 1; } else { SendClientMessage(playerid, COLOR_GREY, "Unknown service name!"); return 1; } } success = 1; return 1; } return 1; }
-
Gata , mersii mult!
-
Mi-l dai si mie in PM te rog... :(
-
1. Am pus doar erorile din sv log 2. O sa le caut in gm acele fisiere 3. Da le-am instalat Tot nu merge, uite tot sv_log: ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [20:40:06] filterscripts = "" (string) [20:40:06] [20:40:06] Server Plugins [20:40:06] -------------- [20:40:06] Loading plugin: crashdetect [20:40:06] CrashDetect v4.13.1 is OK. [20:40:06] Loaded. [20:40:06] Loading plugin: GeoIP_Plugin [20:40:06] Failed. [20:40:06] Loading plugin: libmysqlclient [20:40:06] Failed. [20:40:06] Loading plugin: libmysqlclient [20:40:06] Failed. [20:40:06] Loading plugin: libmysqlclient [20:40:06] Failed. [20:40:06] Loading plugin: mysql [20:40:06] >> plugin.mysql: R38 successfully loaded. [20:40:06] Loaded. [20:40:06] Loading plugin: mysql_5.5 [20:40:06] Failed. [20:40:06] Loading plugin: mysql_static [20:40:06] Failed. [20:40:06] Loading plugin: nativechecker [20:40:06] Failed. [20:40:06] Loading plugin: profiler [20:40:06] Profiler v2.10.4 is OK. [20:40:06] Loaded. [20:40:06] Loading plugin: sscanf [20:40:06] [20:40:06] =============================== [20:40:06] sscanf plugin loaded. [20:40:06] Version: 2.8.1 [20:40:06] (c) 2012 Alex "Y_Less" Cole [20:40:06] =============================== [20:40:06] Loaded. [20:40:06] Loading plugin: streamer [20:40:06] *** Streamer Plugin v2.6.1 by Incognito loaded *** [20:40:06] Loaded. [20:40:06] Loading plugin: Whirlpool [20:40:06] Failed. [20:40:06] Loading plugin: TDE [20:40:06] TDEditor Plugin loaded, thank you for using. [20:40:06] Loaded. [20:40:06] Loaded 6 plugins. [20:40:07] [20:40:07] Ban list [20:40:07] -------- [20:40:07] Loaded: samp.ban [20:40:07] [20:40:07] [20:40:07] Filterscripts [20:40:07] --------------- [20:40:07] Loaded 0 filterscripts. [20:40:07] [debug] Run time error 19: "File or function is not found" [20:40:07] [debug] GetCountryName [20:40:07] [debug] Run time error 19: "File or function is not found" [20:40:07] [debug] GetCountryName [20:40:07] Script[gamemodes/bgd.amx]: Run time error 19: "File or function is not found" [20:40:07] Number of vehicle models: 0
-
De ce nu ma lasa sa deschid serverul pe localhost? Asta imi da cand incerc sa il deschid: [20:22:58] [debug] Run time error 19: "File or function is not found" [20:22:58] [debug] GetCountryName [20:22:58] [debug] Run time error 19: "File or function is not found" [20:22:58] [debug] GetCountryName [20:22:58] Script[gamemodes/bgd.amx]: Run time error 19: "File or function is not found" [20:22:58] Number of vehicle models: 0
-
Am luat si eu GM-ul asta.. e de la gm frate nu de la host ial pe cel de la Masco ala e bun
-
Sorin Dridea started following x Stoie x
-
x Stoie x started following Sorin Dridea
-
Stiu ca tu ai un gm fortza ... si stiu ca nu il dai... :|
-
Rog un admin sa dea T/ C nu are rost sa il mai tin topicul.
-
Ma refeream la cel cu warurile in VW da o sa incerc sa il fac eu :)) vad ca nimeni nu il da...
-
Add skype: xsrnsoso