19.08.2009, 20:47
Hello =)
I want to set 3 strings into a GameTextForPlayer... I have no idea how to do it and I didn't know what to search on =/
Here is what I got:
I want it to look like this:
gunshop
owner: (owner)
entrance: (entrance fee)
price: (if sale = 1, this text shall be green, if sale = 0, red...)
How to do that? =/
Thanks xD
I want to set 3 strings into a GameTextForPlayer... I have no idea how to do it and I didn't know what to search on =/
Here is what I got:
pawn Код:
if(pickupid == GS-1)
{
new string[256],string2[256],string3[256],owner[MAX_STRING];
owner = dini_Get("CLRP/Businesses/GS-1","Owner");
new price = dini_Int("CLRP/Businesses/GS-1","Sellprice");
new sale = dini_Int("CLRP/Businesses/GS-1","Sale");
new entrance = dini_Int("CLRP/Businesses/GS-1","Entrance");
format(string,256,"%s",owner);
format(string2,256,"%d",entrance);
format(string3,256,"%d",price);
GameTextForPlayer(playerid,"",6000,1);
}
gunshop
owner: (owner)
entrance: (entrance fee)
price: (if sale = 1, this text shall be green, if sale = 0, red...)
How to do that? =/
Thanks xD