Oko Bilborda

Započeo Carera, Jun 22, 2018, 09:30:57 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Ubacivao sam bilbord od nekog moda,i kada napisem nesto na bilobrd pise napisali ste bilbord i dali 4g zlata, al gore i dalje stoji /bilobrd.
Dio skripte:
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike

CMD:bilbord(playerid, params[], help)
{
    new strR[255];
if(PlayerInfo[playerid][xLevel] < 10) return SCM(playerid, -1, "Morate biti 10+ lvl");
if(bilbas == 1 && PlayerInfo[playerid][xAdmin] < 1) return SCM(playerid, -1, "Neki bilbord je vec napisan, sacekajte malo");
if(!IsPlayerInRangeOfPoint(playerid, 10, 1519.19, -1725.64, 11.59) && !IsPlayerInRangeOfPoint(playerid, 10, 1368.66, -1412.66, 11.44) && !IsPlayerInRangeOfPoint(playerid, 10, 1473.17, -1042.98, 21.70) && !IsPlayerInRangeOfPoint(playerid, 10, 1232.87, -924.13, 40.62) && !IsPlayerInRangeOfPoint(playerid, 10, 1185.61, -1388.17, 11.17) && !IsPlayerInRangeOfPoint(playerid, 10, 1583.20, -2309.10, 11.42)) return SCM(playerid, -1, "Nisi blizu bilborda");
new bilt[60];
if(sscanf(params, "s[128]", bilt)) return SCM(playerid, -1, "{00FFEE}/bilbord [text]");
new is1=0;
new r=0;
while(strlen(bilt[is1]))
{
if('0'<=bilt[is1]<='9')
{
new is2=is1+1;
new p=0;
while(p==0)
{
if('0'<=bilt[is2]<='9'&&strlen(bilt[is2])) is2++;
else
{
strmid(strR[r],bilt,is1,is2,255);
if(strval(strR[r])<255) r++;
is1=is2;
p=1;
}
}
}
is1++;
}
if(r>=4)
{
for(new z=0;z<r;z++)
{
new pr2;
while((pr2=strfind(bilt,strR[z],true))!=-1) for(new i=pr2,j=pr2+strlen(strR[z]);i<j;i++) bilt[i]='*';
return 1;
}
}
if(strlen(bilt) > 50) return SCM(playerid, -1, "Ne moze vise od 50 znakova");
if( PlayerInfo[playerid][xZlato] < 4) return SCM(playerid, -1, "Nemas 4g zlata");
if( IsPlayerInRangeOfPoint(playerid, 10, 1519.19, -1725.64, 11.59))
{
SetDynamicObjectMaterialText(bill1, 0, bilt, 130, "Arial", 24, 0, 0xFFFFFFAA, -16777216, 1);
}
if( IsPlayerInRangeOfPoint(playerid, 10, 1368.66, -1412.66, 11.44))
{
SetDynamicObjectMaterialText(bill2, 0, bilt, 130, "Arial", 24, 0, 0xFFFFFFAA, -16777216, 1);
}
if( IsPlayerInRangeOfPoint(playerid, 10, 1473.17, -1042.98, 21.70))
{
SetDynamicObjectMaterialText(bill3, 0, bilt, 130, "Arial", 24, 0, 0xFFFFFFAA, -16777216, 1);
}
if( IsPlayerInRangeOfPoint(playerid, 15, 1232.87, -924.13, 40.62))
{
SetDynamicObjectMaterialText(bill4, 0, bilt, 130, "Arial", 24, 0, 0xFFFFFFAA, -16777216, 1);
}
if( IsPlayerInRangeOfPoint(playerid, 10, 1185.61, -1388.17, 11.17))
{
SetDynamicObjectMaterialText(bill5, 0, bilt, 130, "Arial", 24, 0, 0xFFFFFFAA, -16777216, 1);
}
if( IsPlayerInRangeOfPoint(playerid, 10, 1583.20, -2309.10, 11.42))
{
SetDynamicObjectMaterialText(bill6, 0, bilt, 130, "Arial", 24, 0, 0xFFFFFFAA, -16777216, 1);
}
bilbas = 1;
SendInfoMessage( playerid, "Dali ste 4grama zlata za ime bilborda: %s", bilt );
PlayerInfo[playerid][xZlato] -= 4;
SetTimer("SkiniBilb", 500000, 0);
return 1;
}


forward SkiniBilb();
public SkiniBilb()
{
bilbas = 0;
return 1;
}

I ovo sam dodao u pwn mapa

new bilbord23131 = CreateDynamicObjectEx(3715,1480.337,-1742.527,21.180,0.000,0.000,0.000,600.000,600.000);
SetDynamicObjectMaterial(bilbord23131, 2, 3980, "cityhall_lan", "LAcityhwal1");
CreateDynamicObject(1267,1470.19995117,-1043.69995117,25.39999962,0.00000000,0.00000000,64.50000000); //object(billbd2) (1)
CreateDynamicObject(1267,1241.00000000,-920.00000000,44.09999847,0.00000000,0.00000000,294.49951172); //object(billbd2) (2)
CreateDynamicObject(1267,1519.09997559,-1722.30004883,15.19999981,0.00000000,0.00000000,309.25000000); //object(billbd2) (3)
CreateDynamicObject(1267,1185.19995117,-1385.69995117,14.50000000,0.00000000,0.00000000,316.00000000); //object(billbd2) (4)
CreateDynamicObject(1267,1586.50000000,-2309.39990234,14.60000038,0.00000000,0.50000000,218.75001526); //object(billbd2) (6)

bill1 = CreateDynamicObject(4239,1518.84179688,-1721.80761719,20.16279984,0.00000000,0.00000000,309.42443848); //bilbord
SetDynamicObjectMaterialText(bill1, 0,"/bilbord", 130, "Arial", 24, 0, 0xFFFFFFAA, -16777216, 1);

bill3 = CreateDynamicObject(4239,1470.00000000,-1044.69995117,30.70000076,0.00000000,0.00000000,64.76989746); //convertffs(14)
SetDynamicObjectMaterialText(bill3, 0,"/bilbord", 130, "Arial", 24, 0, 0xFFFFFFAA, -16777216, 1);

bill4 = CreateDynamicObject(4239,1240.00000000,-919.40002441,49.09999847,0.00000000,0.00000000,294.61230469); //convertffs(15)
SetDynamicObjectMaterialText(bill4, 0,"/bilbord", 130, "Arial", 24, 0, 0xFFFFFFAA, -16777216, 1);

bill5 = CreateDynamicObject(4239,1184.38378906,-1385.07324219,19.75219917,0.00000000,0.00000000,316.09313965); //convertffs(16)
SetDynamicObjectMaterialText(bill5, 0,"/bilbord", 130, "Arial", 24, 0, 0xFFFFFFAA, -16777216, 1);

bill6 = CreateDynamicObject(4239,1586.93261719,-2308.79687500,19.97279930,0.00000000,0.00000000,218.84216309); //convertffs(17)
SetDynamicObjectMaterialText(bill6, 0,"/bilbord", 130, "Arial", 24, 0, 0xFFFFFFAA, -16777216, 1);

Poslednja Izmena: Jun 22, 2018, 09:33:23 PRE PODNE od AdmirTM

Zasto ti je ova linija ovakva
bill1 = CreateDynamicObject(4239,1518.84179688,-1721.80761719,20.16279984,0.00000000,0.00000000,309.42443848); //bilbord
SetDynamicObjectMaterialText(bill1, 0,"/bilbord", 130, "Arial", 24, 0, 0xFFFFFFAA, -16777216, 1);