SA-MP Forums Archive
[HELP] Player names - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Player names (/showthread.php?tid=158593)



[HELP] Player names - Maxips2 - 10.07.2010

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);



Re: [HELP] Player names - Maxips2 - 10.07.2010

Bump.....


Re: [HELP] Player names - Hiddos - 10.07.2010

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


Re: [HELP] Player names - Maxips2 - 10.07.2010

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


Re: [HELP] Player names - Maxips2 - 10.07.2010

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


Re: [HELP] Player names - Johndaonee - 10.07.2010

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


Re: [HELP] Player names - Maxips2 - 10.07.2010

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..)


Re: [HELP] Player names - Johndaonee - 10.07.2010

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


Re: [HELP] Player names - Maxips2 - 10.07.2010

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


Re: [HELP] Player names - Grim_ - 10.07.2010

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.