p<delimiter> parameter
#1

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...
Reply
#2

We fixed this togheter on IRC

Here is the code
http://pastebin.com/faa0b6d1
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)