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


Messages In This Thread
p<delimiter> parameter - by SMCentral - 08.11.2009, 09:15
Re: p<delimiter> parameter - by FUNExtreme - 08.11.2009, 10:20
Re: p<delimiter> parameter - by SMCentral - 08.11.2009, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)