[HELP] Player names
#1

Okay, I've been working on a /buyhouse cmd but there's a problem with it...
It does not read the name as it should be.
Say the name is "Andy Remirez", then it reads it as "Ady Remirez".
This is the line:

pawn Код:
strmid(HouseInfo[h][hOwner], playername, 0, strlen(playername), 255);
Reply
#2

Bump.....
Reply
#3

pawn Код:
strlen(playername)-1
Unsure though, but I thought I fixed a similiar issue with that.
Reply
#4

EDIT: Its alright, no warning
gonna test it and tell u if it works
Reply
#5

EDIT: That didn't work, now another word is missing
Reply
#6

Does this happen when it saves the house or right after he types the command?
Reply
#7

after I type the cmd /buyhouse, its missing the letter
and then its saving the house, and saving the name in the .ini file
when its loading the .ini file, its loading the same name (with the missing letter..)
Reply
#8

Show the saving, if you dont wanna show it just PM it.
Reply
#9

dini_Set(file, "Owner", HouseInfo[h][hOwner]);
Reply
#10

Are you sure your name is Andy_Ramirez when entering the server?

If it was a problem with the script, I don't think it'd remove the "n" of all things.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)