SA-MP Forums Archive
p<delimiter> parameter - 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: p<delimiter> parameter (/showthread.php?tid=107115)



p<delimiter> parameter - SMCentral - 08.11.2009

I'm making a roleplay safe. What I want to do is use the p<delimiter> parameter for data.

The player would have a 4 digit code on their safe which is saved at PlayerAccounts[playerid][BankCode] = 1234.

What I then what to do is use the p<delimiter> parameter to separate that code into 4 pieces.

So the server would ask them what their first digit of the code is? If they reply with 1, it matches it with the first number in their PlayerAccounts[playerid][BankCode] data field.



I hope that I wrote it clear since sometimes my brain goes for a walk when talking about coding.. hehehe...


Re: p<delimiter> parameter - FUNExtreme - 08.11.2009

We fixed this togheter on IRC

Here is the code
http://pastebin.com/faa0b6d1


Re: p<delimiter> parameter - SMCentral - 08.11.2009

Give me an example of it, Y Less...?