Detaljan opis problema:da mi napravite da e 3d text, skriptata od kade ja najdov link : http://balkan-samp.com/forum/index.php?topic=6231.0
Dio skripte:
Quote
public ReadPlayerHouseData(playerid)
{
new string, house;
for(new h = 0; h <= MAX_HOUSES; h++){
format(house, sizeof(house), "/Houses/%d.dini.save", h);
if(dini_Exists(house)){
if(HouseInfo == 1){
if(PlayerToPoint(PTP_RADIUS, playerid, HouseInfo, HouseInfo, HouseInfo)) {
format(string, sizeof(string), "~g~] House for Sale ]~n~~w~Owner:~y~ %s~n~~w~Level:~r~ %d~n~~w~Sell Price:~r~ %d~n~~w~Rent Cost:~r~ %d", HouseInfo, HouseInfo, HouseInfo, HouseInfo);
GameTextForPlayer(playerid,string, 1500, 3);
}
} else if(HouseInfo == 0){
if(PlayerToPoint(PTP_RADIUS, playerid, HouseInfo, HouseInfo, HouseInfo)) {
format(string, sizeof(string), "~w~Owner:~y~ %s~n~~w~Level:~r~ %d~n~~w~Rent Cost:~r~ %d", HouseInfo, HouseInfo, HouseInfo);
GameTextForPlayer(playerid,string, 1500, 3);
} } } }
}
{
new string, house;
for(new h = 0; h <= MAX_HOUSES; h++){
format(house, sizeof(house), "/Houses/%d.dini.save", h);
if(dini_Exists(house)){
if(HouseInfo == 1){
if(PlayerToPoint(PTP_RADIUS, playerid, HouseInfo, HouseInfo, HouseInfo)) {
format(string, sizeof(string), "~g~] House for Sale ]~n~~w~Owner:~y~ %s~n~~w~Level:~r~ %d~n~~w~Sell Price:~r~ %d~n~~w~Rent Cost:~r~ %d", HouseInfo, HouseInfo, HouseInfo, HouseInfo);
GameTextForPlayer(playerid,string, 1500, 3);
}
} else if(HouseInfo == 0){
if(PlayerToPoint(PTP_RADIUS, playerid, HouseInfo, HouseInfo, HouseInfo)) {
format(string, sizeof(string), "~w~Owner:~y~ %s~n~~w~Level:~r~ %d~n~~w~Rent Cost:~r~ %d", HouseInfo, HouseInfo, HouseInfo);
GameTextForPlayer(playerid,string, 1500, 3);
} } } }
}
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
