24.02.2011, 12:03
Ok, So I want to add credit cards into my script. However, I don't want to have the current players need to remake their accounts so I am trying to make it so when they try to buy a credit card, it detects if they have the line to change the 0 to a 1. here's what i have so far:
I realize of course, it's not finished, but I need some help on how to make it detect if there is CreditCard=0 in the player's file. what would i use for that?
Thanks for any help.
Код:
if(strcmp(cmd, "/buycc", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pCreditCard] = 0); { SetPlayerInfo[playerid][pCreditCard] = 1; } else if { dini_IntSet(string3, "CreditCard",PlayerInfo[playerid][pCreditCard]); } } }
Thanks for any help.