SA-MP Forums Archive
Y_INI.... Help! - 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: Y_INI.... Help! (/showthread.php?tid=488656)



Y_INI.... Help! - NewCityRoleplay - 18.01.2014

How do I save and load strings like I own an RP script and I want to save strings like pCrimeReason but I can't because I don't know how to save and load strings. Even on the YINI page it doesn't give enough information..

Please... Help.


Re: Y_INI.... Help! - Blademaster680 - 18.01.2014

You could make a command like /su [playerid] [reason] and that reason can be a number and you save the number. Then you could make a stock that will look for that number and will for example. "If(PlayerInfo[playerid][pCrimeReason] == 1)" it can return a string like "Bank Robbery". And you can make a whole list of types of crimes and when someone gives someone a crime you can just add a number as the reason and the stock will get the number and make it a string.