08.11.2009, 09:15
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.
![Smiley](images/smilies/smile.png)
I hope that I wrote it clear since sometimes my brain goes for a walk when talking about coding.. hehehe...
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.
![Smiley](images/smilies/smile.png)
I hope that I wrote it clear since sometimes my brain goes for a walk when talking about coding.. hehehe...