Код:
GetPlayerPos(i, oldposx, oldposy, oldposz);
if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
{
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
{
if(SBizzInfo[h][sbOwned] == 1)
{
format(string, sizeof(string), "~w~%s~w~~n~Propriйtaire : %s~n~extorsion Par : %s~n~Frais d'entrйe : ~g~$%d ~n~~w~Pour entrer Tappe : /entrer",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost]);
}
else
{
format(string, sizeof(string), "~w~%s~w~~n~Cette entreprise est a vendre~n~Prix: ~g~$%d ~w~Level : %d ~n~~b~/acheterbiz ~w~pour acheter ce Biz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
}
InfoBoxForPlayer(i, string);
SendDebugMessage("CustomPickups, SBizInfo");
}
}
You don't have the stock for that function. What does it do(InfoBoxForPlayer)? Keep it in mind and try to make a stock for it.
The above poster already tell you. Don't be lazy to search for function InfoBoxForPlayer
it dont need A stock its like a Textdraw it showing a Box Of information .. and why i be lazy .