Quote:
Originally Posted by milanosie
Name the file to the pin code, Then check if the file already exists
then in the player file just link Pin to the file name
|
The pin part i know but the first will not work because i don't know if i have a file.. The number that player type will be the number. I want it to check if the number that player type exist..
Player can even type /createaccount 1455552553 4444 and it should check if that number exit or not..
I am defining it with "number" as you can see in sscanf params.
I want it to check like:
if(!dini_Exists(number.ini[])
But this will just not work, cos player isn't typing "number" but yes a real number...
How to make it that %d is the number? So i can if(!dini_Exists(%d.ini[])
I want to check if the banka ccount already exist, not if the pin is right. Cos all accounts have a file, and all players can just deposit money there if they know acc number, and withdraw if they know the pin.