Credit Cards
#1

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:

Код:
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]);
 		}
 	    }
 	}
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.
Reply


Messages In This Thread
Credit Cards - by marine - 24.02.2011, 12:03
Re: Credit Cards - by DaneAMattie - 24.02.2011, 12:06
Re: Credit Cards - by marine - 24.02.2011, 12:13
Re: Credit Cards - by DaneAMattie - 24.02.2011, 12:21
Re: Credit Cards - by marine - 24.02.2011, 12:26
Re: Credit Cards - by DaneAMattie - 24.02.2011, 12:28
Re: Credit Cards - by marine - 24.02.2011, 12:34
Re: Credit Cards - by marine - 24.02.2011, 12:39
Re: Credit Cards - by DaneAMattie - 24.02.2011, 12:41

Forum Jump:


Users browsing this thread: 1 Guest(s)