gtarp - 12 slova u imenu

Započeo mmlinaric, Novembar 07, 2019, 17:38:56 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): u GTARP modu se maximalno moze imat 12 slova u imenu
Dio skripte: [pawn]vaš odgovor[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): /
Slika/video ingame problema(obavezno ako je ingame problem): /

uzeo sam malo da radim na gtarp modu, te zatekao ovo:
[pawn]
SendClientMessage(playerid, COLOR_RED, " Use Max 12 Letters in your Name or it wont save! ");
[/pawn]
eh sad, ja ne mogu naci provjeru za limit slova. account se normalno savea u scriptfiles/users/ folderu, ali kad udjes opet se moras registrirat.

Traži u skripti
[pawn]#define MAX_PLAYER_NAME 12[/pawn]
ili
[pawn]#define REAL_MAX_PLAYER_NAME 15[/pawn]

Citat: daddy. poslato Novembar 07, 2019, 18:38:46 POSLE PODNE
Traži u skripti
[pawn]#define MAX_PLAYER_NAME 12[/pawn]
ili
[pawn]#define REAL_MAX_PLAYER_NAME 15[/pawn]
nema ni jedno ni drugo
probao sam prije undef pa def max_player_name na 24 al opet nis

Citat: mmlinaric poslato Novembar 07, 2019, 18:53:55 POSLE PODNE
nema ni jedno ni drugo
probao sam prije undef pa def max_player_name na 24 al opet nis
Jesi li pokušao ući na server sa nicknameom preko 12 znakova?

Citat: daddy. poslato Novembar 07, 2019, 19:12:53 POSLE PODNE
Jesi li pokušao ući na server sa nicknameom preko 12 znakova?
pa to i kazem, ne radi sa nicknameovima preko 12. sa manje nisam probao nekako mi mrsko sad palit komp.

pošalji cijeli blok gdje ti izbaci SCM!!
哈里斯--

Citat: AllerG poslato Novembar 08, 2019, 06:49:52 PRE PODNE
pošalji cijeli blok gdje ti izbaci SCM!!
to pise u onplayerconnectu odmah na vrhu da obavjesti igraca.

Pogledaj kod za registraciju, trebalo bi tu da ima nesto oko imena.
• Website: www.vasic.dev
Web Development & Cyber Security

Citat: Vasic poslato Novembar 08, 2019, 12:31:20 POSLE PODNE
Pogledaj kod za registraciju, trebalo bi tu da ima nesto oko imena.
to je prvo sta sam gledao.. al je tamo samo saving. account se poslje registracije noemalno savea al kad udjes opet ae moras registrirat.

Potraži strlen negde? :D


Sirah says
Chillin' in Kyoto grand with my man Skrill
Chain smokin' nicotine sayin' fuck a fast deal
We got that white girl so we make those skrill checks
Fuck a white girl, talk ill, neck karate chop her grill, bitch I kill
Born from the center of a storm
All these boys flappin' gums about how they're hard, bitch I'm harder
Martyr to the swag on the corner
Beat your girl with the drums as the bass makes that bitch cum
Bass makes that bitch cum




Laughin' at the world.


pronadji tipa:

[pawn]
enum players_ENUM {
  pName[12]
}
[/pawn]
mozda tako nesto imas

Citat: .faydee poslato Novembar 08, 2019, 21:06:20 POSLE PODNE
pronadji tipa:

[pawn]
enum players_ENUM {
  pName[12]
}
[/pawn]
mozda tako nesto imas
Pa ne može kikovati ako je array ograničen na 12, može samo dobiti OBOE, treba imati strlen negde :D


Sirah says
Chillin' in Kyoto grand with my man Skrill
Chain smokin' nicotine sayin' fuck a fast deal
We got that white girl so we make those skrill checks
Fuck a white girl, talk ill, neck karate chop her grill, bitch I kill
Born from the center of a storm
All these boys flappin' gums about how they're hard, bitch I'm harder
Martyr to the swag on the corner
Beat your girl with the drums as the bass makes that bitch cum
Bass makes that bitch cum




Laughin' at the world.


Citat: Skrillex. poslato Novembar 08, 2019, 21:09:46 POSLE PODNE
Pa ne može kikovati ako je array ograničen na 12, može samo dobiti OBOE, treba imati strlen negde :D
ne zna on to naci

CTRL + F i polako trazi strlen :D

EDIT: A možeš i ovako, samo upalii Regular Expression

strlen\((.*?)\) > 12 ( ili >= 13, a ako nema trazi redom :)
Poslednja Izmena: Novembar 08, 2019, 21:14:37 POSLE PODNE od Skrillex.


Sirah says
Chillin' in Kyoto grand with my man Skrill
Chain smokin' nicotine sayin' fuck a fast deal
We got that white girl so we make those skrill checks
Fuck a white girl, talk ill, neck karate chop her grill, bitch I kill
Born from the center of a storm
All these boys flappin' gums about how they're hard, bitch I'm harder
Martyr to the swag on the corner
Beat your girl with the drums as the bass makes that bitch cum
Bass makes that bitch cum




Laughin' at the world.


Ja samo ne znam šta će ti mod star kao i SAMP u almost 2o2o..