Saving and loading words problem. - 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)
+--- Thread: Saving and loading words problem. (
/showthread.php?tid=419351)
-
Denying - 01.03.2013
Alright, so what I am trying to do is save a certain word, maybe more. ( Depends on the one who used /setrank )
I am using dini ( note: please read the notes at the paste bin, I've written them while uploading the paste bin just for this. )
http://pastebin.com/kUSN6Dpn
What may be wrong? When I go to the player's file, it shows only the first four letters of the rank, why?
May I not store and load words using dini?
In game it shows on the faction chat a space before the name and nothing else.
"(( space player_name says: player_text ))"
instead of;
"(( player_rank player_name says: player_text ))"
Thank you!
Alright, I figured out why it shows only the first four letters.
It was because I used the fRank value to save and it was strtok, so it did not save the words after the space. ( Fixed that )
Although it still does not show any rank on the /f (faction chat.)
Please, anyone?
Anyone knows how to save and load words?
Re: Saving and loading words problem. -
Denying - 02.03.2013
Anyone..?
Re: Saving and loading words problem. -
zxc1 - 02.03.2013
strval made to convert string into a integer.
As I see your 'Rank' is a string, when why you trying to convert it into a integer?
Re: Saving and loading words problem. -
Denying - 02.03.2013
I just have to say one thing which is I love you.
Will rep you as soon as I can ( I repped too many people in the last 24 hours )