Wysłany: 2012-12-30, 15:38
Janikos
Wiek: 28 Na forum: 5991 dni Posty: 9
Nick w MP: EnerGy
Piwa : 676
Jakarta ,
Kod:
Jak nie pomo?e - b??d z klamrami.
Wysłany: 2013-01-07, 09:16
Jakso
Beyond the glass..
Wiek: 27 Na forum: 5114 dni Posty: 65
Nick w MP: szalik.dev
Piwa : 1193
Wi?c tak chcia?em zrobi? licznik pojazdu w text3d o to co zrobi?em:
Kod:
forward pojazdek(vehicleid);
public pojazdek(vehicleid)
{
new s[256];
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
{
format(s, 128, ""N4"%s\n"N5"Speed: "N1"%d\n"N5"HP: "N1"%d~y~/~r~100", LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400], GetVehSpeed(GetPlayerVehicleID(i)), GetRealVehicleHealth(i));
Update3DTextLabelText(vehicle3Dtext[i], -1, s);
Attach3DTextLabelToVehicle(vehicle3Dtext[i],vehicleid, 0.0, 0.0, 0.5);
}
}
return 1;
}
LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400] - Nazwa pojazdu
GetVehSpeed(GetPlayerVehicleID(i)) - Szybkosc km/h
GetRealVehicleHealth(i) - zycie pojazdu.
noi chcia?em jeszcze doda? text3d na graczem z levelem expem i rang?.
Kod:
forward PlayerLabelOff(playerid);
public PlayerLabelOff(playerid)
{
if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 3000){
new string[150];
format(string,sizeof(string),"\n {FF0000}Ranga: {FFFFFF}Gracz\n {FF0000}Poziom: {FFFFFF}%d\n {FF0000}Respekt: {FFFFFF}%d/%d", GetPlayerLevel(playerid), GetPlayerScore(playerid), GetPlayerNextExp(playerid));
Update3DTextLabelText(PlayerLabel[playerid], -1, string);
return 1;
}
if(GetPlayerScore(playerid) >= 3000 && GetPlayerScore(playerid) <= 5000){
new string[150];
format(string,sizeof(string),"\n {FF0000}Ranga: {FFFFFF}Kapitan\n {FF0000}Poziom: {FFFFFF}%d\n {FF0000}Respekt: {FFFFFF}%d/%d", GetPlayerLevel(playerid), GetPlayerScore(playerid), GetPlayerNextExp(playerid));
Update3DTextLabelText(PlayerLabel[playerid], -1, string);
return 1;
}
if(GetPlayerScore(playerid) >= 5000 && GetPlayerScore(playerid) <= 8000){
new string[150];
format(string,sizeof(string),"\n {FF0000}Ranga: {FFFFFF}Major\n {FF0000}Poziom: {FFFFFF}%d\n {FF0000}Respekt: {FFFFFF}%d/%d", GetPlayerLevel(playerid), GetPlayerScore(playerid), GetPlayerNextExp(playerid));
Update3DTextLabelText(PlayerLabel[playerid], -1, string);
return 1;
}
if(GetPlayerScore(playerid) >= 8000 && GetPlayerScore(playerid) <= 12000){
new string[150];
format(string,sizeof(string),"\n {FF0000}Ranga: {FFFFFF}Pu?kownik\n {FF0000}Poziom: {FFFFFF}%d\n {FF0000}Respekt: {FFFFFF}%d/%d", GetPlayerLevel(playerid), GetPlayerScore(playerid), GetPlayerNextExp(playerid));
Update3DTextLabelText(PlayerLabel[playerid], -1, string);
return 1;
}
if(GetPlayerScore(playerid) >= 12000 && GetPlayerScore(playerid) <= 20000){
new string[150];
format(string,sizeof(string),"\n {FF0000}Ranga: {FFFFFF}Genera?\n {FF0000}Poziom: {FFFFFF}%d\n {FF0000}Respekt: {FFFFFF}%d/%d", GetPlayerLevel(playerid), GetPlayerScore(playerid), GetPlayerNextExp(playerid));
Update3DTextLabelText(PlayerLabel[playerid], -1, string);
return 1;
}
return 1;
}
Noi w ongamemodeinit:
Kod:
for(new i=0;i<MAX_PLAYERS;i++){
vehicle3Dtext[i] = Create3DTextLabel(" ", 0xFFFF00FF, 30.0, 40.0, 50.0, 30.0, 0, 1);
PlayerLabel[i] = Create3DTextLabel(" ", 0xFFFF00FF, 30.0, 40.0, 50.0, 30.0, 0, 1);
}
Playerlabel - to do levelu i expa
Vehicle3dtext - do licznika.
Dodalem w onplayerconnect:
Kod:
Attach3DTextLabelToPlayer(PlayerLabel[playerid], playerid, 0.0, 0.0, 0.4);
Update3DTextLabelText(PlayerLabel[playerid],-1," ");
Noi nie dzia?a prosz? o pomoc !
Tzn. nie pokazuje si? nic ..
Prosz? pisa? na GG:25609453 lub pw na forum
Wysłany: 2013-01-21, 16:55
WePsTeR17
Wiek: 30 Na forum: 4892 dni Posty: 2
Oto i m?j problem
Kod: s[16] --- Server Shutting Down.
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3e, (C)2005-2012 SA-MP Team
[16]
[16] Server Plugins
[16] --------------
[16] Loading plugin: sscanf.so
[16]
[16] ===============================
[16] sscanf plugin loaded.
[16] (c) 2009 Alex "Y_Less" Cole
[16] ===============================
[16] Loaded.
[16] Loading plugin: streamer.so
[16]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[16] Loaded.
[16] Loading plugin: mysql
[16] Failed (plugins/mysql: cannot open shared object file: No such file or directory)
[16] Loading plugin: audio.so
[16]
*** Audio Plugin v0.4 by Incognito loaded ***
[16] Loaded.
[16] Loading plugin: fm
[16] Failed (plugins/fm: cannot open shared object file: No such file or directory)
[16] Loaded 3 plugins.
[16]
[16] Ban list
[16] --------
[16] Loaded: samp.ban
[16]
[16]
[16] Filterscripts
[16] ---------------
[16] Loading filterscript 'bilard.amx'...
[16] Loading filterscript 'kregle.amx'...
[16] *** Streamer Plugin: Include file version (0) does not match plugin version (0x26104) (script needs to be recompiled with the latest include file)
[16] *** Streamer Plugin: Obsolete or invalid native found (script needs to be recompiled with the latest include file)
[16] Kregle by Destroyer uruchomione!
[16] Loading filterscript 'obiekty.amx'...
[16] *** Streamer Plugin: Include file version (0) does not match plugin version (0x26104) (script needs to be recompiled with the latest include file)
[16] *** Streamer Plugin: Obsolete or invalid native found (script needs to be recompiled with the latest include file)
[16] Obiekty dla Honest-RP by Destroyer zaladowano!
[16] Zaladowano: 1507 obiektow!
[16] Loaded 3 filterscripts.
[16] Script[gamemodes/honest.amx]: Run time error 19: "File or function is not found"
[16] Number of vehicle models: 0
Wysłany: 2013-02-10, 21:52
JohnyRay
Wiek: 29 Na forum: 4982 dni Posty: 14
Nick w MP: JohnyRay
Mam podobny problem co kolega u g?ry
Kod: ----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team
[20:52]
[20:52] Server Plugins
[20:52] --------------
[20:52] Loading plugin: audio.so
[20:52]
*** Audio Plugin v0.5 by Incognito loaded ***
[20:52] Loaded.
[20:52] Loading plugin: sscanf.so
[20:52]
[20:52] ===============================
[20:52] sscanf plugin loaded.
[20:52] (c) 2009 Alex "Y_Less" Cole
[20:52] ===============================
[20:52] Loaded.
[20:52] Loading plugin: streamer.so
[20:52]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[20:52] Loaded.
[20:52] Loaded 3 plugins.
[20:52]
[20:52] Filterscripts
[20:52] ---------------
[20:52] Loading filterscript 'obiekty1.amx'...
[20:52]
--------------------------------------
[20:52] Obiekty Innovation Tiry Za?adowane :E
[20:52] --------------------------------------
[20:52] Loading filterscript 'obiekty2.amx'...
[20:52]
--------------------------------------
[20:52] Bazy Baj M?oda Za?adowane
[20:52] --------------------------------------
[20:52] Loading filterscript 'obiekty3.amx'...
[20:52] Loaded 3 filterscripts.
[20:52] *** Streamer Plugin: Include file version (0) does not match plugin version (0x26104) (script needs to be recompiled with the latest include file)
[20:52] *** Streamer Plugin: Obsolete or invalid native found (script needs to be recompiled with the latest include file)
[20:52] Script[gamemodes/new_backup.amx]: Run time error 19: "File or function is not found"
[20:52] Number of vehicle models: 0
echo Executing Server Config...
lanmode 1
rcon_password haslo
maxplayers 5
port 1528
hostname Test
gamemode0 new_backup 1
filterscripts obiekty1 obiekty2 obiekty3
plugins audio.so sscanf.so streamer.so
announce 1
query 1
weburl w budowie
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
Wysłany: 2013-02-11, 21:11
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Kod: [20] *** Streamer Plugin: Include file version (0) does not match plugin version (0x26104) (script needs to be recompiled with the latest include file)
[20] *** Streamer Plugin: Obsolete or invalid native found (script needs to be recompiled with the latest include file)
[20] Script[gamemodes/new_backup.amx]: Run time error 19: "File or function is not found"
A wi?c tak dwa pierwsze b??dy rodz? si? z tego ?e kompilujesz map? na innej wersji include streamer a przy odpalaniu jest inna wersja pluginu i to si? gryzie
A ostatni m?wi ?e brakuje Ci jakiego? include w mapie
Pozdrawiam
Wysłany: 2013-02-11, 21:53
JohnyRay
Wiek: 29 Na forum: 4982 dni Posty: 14
Nick w MP: JohnyRay
"_FasteR_" napisał/a : Kod: [20] *** Streamer Plugin: Include file version (0) does not match plugin version (0x26104) (script needs to be recompiled with the latest include file)
[20] *** Streamer Plugin: Obsolete or invalid native found (script needs to be recompiled with the latest include file)
[20] Script[gamemodes/new_backup.amx]: Run time error 19: "File or function is not found"
A wi?c tak dwa pierwsze b??dy rodz? si? z tego ?e kompilujesz map? na innej wersji include streamer a przy odpalaniu jest inna wersja pluginu i to si? gryzie
A ostatni m?wi ?e brakuje Ci jakiego? include w mapie
Pozdrawiam
Dzi?ki piwo leci i mam jeszcze jedno pytanie oczywi?cie za kolejne piwo
jak to usun?c :http://i47.tinypic.com/6nwm0w.jpg ?
Jest to mapa PTR .. Szuka?em w pwn i znale?c nie mog?em . Pozdrawiam .
Wysłany: 2013-02-12, 13:48
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Musisz usun?? wszystko co jest zwi?zane ze Zmienn?:
Kod:
I gotowe
Pozdrawiam
Wysłany: 2013-02-12, 14:49
MaZi
Wiek: 38 Na forum: 4884 dni Posty: 17
Nick w MP: MaZi
Witam mam problem z moim serwerem. Pr?buje juz wgrac 3 mape i nadal nie chce mi odpali?. Widze ze mam b??dy z pluginami ale pluginy wgrywa?em nowe z sa-mp.com i nadal mam ten problem. je?eli juz rozwi??e ten problem nadal serwer nie chce mi odpala?. daje logi z server.log oraz z serwer.cfg
Kod: ----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3e-R2, (C)2005-2012 SA-MP Team
[14:27]
[14:27] Server Plugins
[14:27] --------------
[14:27] Loading plugin: sscanf
[14:27] Failed (plugins/sscanf: cannot open shared object file: No such file or directory)
[14:27] Loading plugin: streamer
[14:27] Failed (plugins/streamer: cannot open shared object file: No such file or directory)
[14:27] Loading plugin: mysql
[14:27] Failed (plugins/mysql: cannot open shared object file: No such file or directory)
[14:27] Loading plugin: audio
[14:27] Failed (plugins/audio: cannot open shared object file: No such file or directory)
[14:27] Loaded 0 plugins.
[14:27]
[14:27] Filterscripts
[14:27] ---------------
[14:27] Loading filterscript 'logowanie.amx'...
[14:27] Loaded 1 filterscripts.
[14:27] Script[gamemodes/pjm.amx]: Run time error 19: "File or function is not found"
[14:27] Number of vehicle models: 0
Pr?bowa?em jeszcze dopisa? w server.cfg do pluginow dopisac .dll i teraz mam
Kod: ----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3e-R2, (C)2005-2012 SA-MP Team
[14:28]
[14:28] Server Plugins
[14:28] --------------
[14:28] Loading plugin: sscanf.dll
[14:28] Failed (plugins/sscanf.dll: invalid ELF header)
[14:28] Loading plugin: streamer.dll
[14:28] Failed (plugins/streamer.dll: invalid ELF header)
[14:28] Loading plugin: mysql.dll
[14:28] Failed (plugins/mysql.dll: invalid ELF header)
[14:28] Loading plugin: audio.dll
[14:28] Failed (plugins/audio.dll: invalid ELF header)
[14:28] Loaded 0 plugins.
[14:28]
[14:28] Filterscripts
[14:28] ---------------
[14:28] Loading filterscript 'logowanie.amx'...
[14:28] Loaded 1 filterscripts.
[14:28] Script[gamemodes/pjm.amx]: Run time error 19: "File or function is not found"
[14:28] Number of vehicle models: 0
server.cfg
Kod: port 7788
maxplayers 20
echo Executing Server Config...
lanmode 0
rcon_password test
hostname Polish Fun Serwer
gamemode0 pjm 1
filterscripts logowanie
plugins sscanf.dll streamer.dll mysql.dll audio.dll
announce 1
query 1
weburl www.funserwer.czo.pl
maxnpc 0
rcon 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
Je?eli du?o do opisywania prosze o kontakt gg: 18499473
Za pomoc daje piwo
Wysłany: 2013-02-12, 14:53
B!4CK
Never give UP!
Wiek: 32 Na forum: 5810 dni Posty: 1047
Nick w MP: John
Piwa : 1891
up@ Nie pomagamy po za forum.
Kod: port 7788
maxplayers 20
echo Executing Server Config...
lanmode 1
rcon_password test
hostname Polish Fun Serwer
gamemode0 pjm 1
filterscripts logowanie
plugins sscanf.dll streamer.so mysql.so audio.so
announce 1
query 1
weburl www.funserwer.czo.pl
maxnpc 0
rcon 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
Jak to jest WINDOWS to zmie? streamer.dll audio.dll sscanf.dll
Oraz zaktualizuj include jak i pluginy. Je?li nie dzia?a dalej po tych dzia?aniach pode?lij ponownie server_log
Podpis
Cześć
[you]
!
Projekt, który poruszy scenę platformy SA:MP!
Wysłany: 2013-02-12, 14:53
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
MaZi , wychodzi na to ?e nie masz plugin?w w folderze "plugins"
Wysłany: 2013-02-12, 14:55
MaZi
Wiek: 38 Na forum: 4884 dni Posty: 17
Nick w MP: MaZi
Wysłany: 2013-02-12, 14:58
B!4CK
Never give UP!
Wiek: 32 Na forum: 5810 dni Posty: 1047
Nick w MP: John
Piwa : 1891
MaZi , Jest to linux.. Wi?c musisz pobra? pluginy z ko?c?wk? .so i b?dzie dzia?a?
Podpis
Cześć
[you]
!
Projekt, który poruszy scenę platformy SA:MP!
Wysłany: 2013-02-12, 14:59
MaZi
Wiek: 38 Na forum: 4884 dni Posty: 17
Nick w MP: MaZi
"blackelegy" napisał/a :MaZi , Jest to linux.. Wi?c musisz pobra? pluginy z ko?c?wk? .so i b?dzie dzia?a?
Z koncowka .so mi nie wrzuci na hosting bo pisze ze pliki sa zbyt duze
Wysłany: 2013-02-12, 15:01
B!4CK
Never give UP!
Wiek: 32 Na forum: 5810 dni Posty: 1047
Nick w MP: John
Piwa : 1891
Spakuj pluginy z ko?c?wk? .so do paczki RAR z ko?c?wk? .zip i wrzu? na FTP, p??niej rozpakuj je w folderze plugins i b?dzie dzia?a?.
Podpis
Cześć
[you]
!
Projekt, który poruszy scenę platformy SA:MP!
Wysłany: 2013-02-12, 15:06
MaZi
Wiek: 38 Na forum: 4884 dni Posty: 17
Nick w MP: MaZi
"blackelegy" napisał/a :Spakuj pluginy z ko?c?wk? .so do paczki RAR z ko?c?wk? .zip i wrzu? na FTP, p??niej rozpakuj je w folderze plugins i b?dzie dzia?a?.
wyskoczy?o:
Kod: Checking files:
Plik pluginy.zip jest OK
Transferring files to the FTP server:
Przetwarzanie archiwum nr 1: pluginy.zip
Unable to extract the files and directories from the archive
i tego spakowaego nadal mi nie wrzuci?o do katalogu ,,plugins''
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: