24.02.2011, 12:06
some little mistakes i think:
use this
use this
pawn Код:
if(strcmp(cmd, "/buycc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pCreditCard] == 0) //you need 2 == in if statements and don't use ; after a if
{
PlayerInfo[playerid][pCreditCard] = 1; // SetPlayerInfo is not a function i think
}
else //you had else if, else if wut? nothing so else
{
dini_IntSet(string3, "CreditCard",PlayerInfo[playerid][pCreditCard]);
}
}
}