//format(string, sizeof(string), "~w~You can Rent this bike~n~Cost:~g~$%d~n~~w~To rent type ~g~/rentbike~w~~n~to get out type ~r~/exit",SBizzInfo[0][sbEntranceCost]); SendClientMessage(playerid, COLOR_WHITE, " You can Rent this bike cost $%d",SBizzInfo[0][sbEntranceCost]); SendClientMessage(playerid, COLOR_WHITE, " /rentbike or /exit "); TogglePlayerControllable(playerid, 0); //GameTextForPlayer(playerid, string, 5000, 3);
//format(string, sizeof(string), "~w~You can Rent this bike~n~Cost:~g~$%d~n~~w~To rent type ~g~/rentbike~w~~n~to get out type ~r~/exit",SBizzInfo[0][sbEntranceCost]); SendClientMessage(playerid, COLOR_WHITE, " You can Rent this bike cost $%d",SBizzInfo[0][sbEntranceCost]"); SendClientMessage(playerid, COLOR_WHITE, " /rentbike or /exit "); TogglePlayerControllable(playerid, 0); //GameTextForPlayer(playerid, string, 5000, 3);
//format(string, sizeof(string), "~w~You can Rent this bike~n~Cost:~g~$%d~n~~w~To rent type ~g~/rentbike~w~~n~to get out type ~r~/exit",SBizzInfo[0][sbEntranceCost]"); SendClientMessage(playerid, COLOR_WHITE, " You can Rent this bike cost $%d",SBizzInfo[0][sbEntranceCost]"); SendClientMessage(playerid, COLOR_WHITE, " /rentbike or /exit "); TogglePlayerControllable(playerid, 0); //GameTextForPlayer(playerid, string, 5000, 3);
Originally Posted by XxCozzaxX
Sorry for double post, i see 1 problem.
Код:
//format(string, sizeof(string), "~w~You can Rent this bike~n~Cost:~g~$%d~n~~w~To rent type ~g~/rentbike~w~~n~to get out type ~r~/exit",SBizzInfo[0][sbEntranceCost]); SendClientMessage(playerid, COLOR_WHITE, " You can Rent this bike cost $%d",SBizzInfo[0][sbEntranceCost]"); SendClientMessage(playerid, COLOR_WHITE, " /rentbike or /exit "); TogglePlayerControllable(playerid, 0); //GameTextForPlayer(playerid, string, 5000, 3); |
//format(string, sizeof(string), "~w~You can Rent this bike~n~Cost:~g~$%d~n~~w~To rent type ~g~/rentbike~w~~n~to get out type ~r~/exit",SBizzInfo[0][sbEntranceCost]); SendClientMessage(playerid, COLOR_WHITE, " You can Rent this bike cost $%d",SBizzInfo[0][sbEntranceCost]); SendClientMessage(playerid, COLOR_WHITE, " /rentbike /exit"); TogglePlayerControllable(playerid, 0); //GameTextForPlayer(playerid, string, 5000, 3);
SendClientMessage(playerid, COLOR_WHITE, "You can rent this Bike");
format(string, sizeof(string), "Cost: $%d", SBizzInfo[0][sbEntranceCost]);
SendClientMessage(playerid, 0x00FF00FF, string);
SendClientMessage(playerid, COLOR_WHITE, "To Get out Type /exit");
SendClientMessage(playerid, COLOR_WHITE, " /rentbike or /exit ");
TogglePlayerControllable(playerid, 0);
format(string, sizeof(string), "~w~You can Rent this bike~n~Cost:~g~$%d~n~~w~To rent type ~g~/rentbike~w~~n~to get out type ~r~/exit",SBizzInfo[0][sbEntranceCost]);
GameTextForPlayer(playerid, string, 5000, 3);
Originally Posted by CueЯvo
First of All, SendClientMessage doesn't Formats Strings, to send a defined string before you must first format it then send it with SendClientMessage(playerid,color,string[]); which in this case, is:
SendClientMessage(playerid,COLOR_WHITE, string); Second, Se.................... |
new aa = SBizzInfo [0] [sbEntranceCost]
SendClientMessage(playerid, COLOR_WHITE, " cost %d ",aa);
format(string, sizeof(string), "Cost: $%d", aa);
SendClientMessage(playerid, COLOR_WHITE, string);