27.11.2010, 13:46
How can I read string from dini?
I have something like:
Where PlayersMob is:
So this is called when player has got NO phone and he buys it...
And this is called when player already has a phone:
But when I'm in game and I try to buy a phone (When I already have one) I get something like:
"You already have a phone. Your have [blank] and your number is 999999."
How can I read that I have Nokia phone?
I have something like:
pawn Код:
dini_Set(file, "MobileType", "Nokia");
PlayersMob = dini_Int(file, "MobileType");
pawn Код:
Player[playerid][MobileType] = PlayersMob;
And this is called when player already has a phone:
pawn Код:
format(string, sizeof(string),"You already have a phone. Your have %s and your number is %d.", PlayersMob,Player[playerid][PhoneNumber]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
"You already have a phone. Your have [blank] and your number is 999999."
How can I read that I have Nokia phone?