[Help]3Dtext - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help]3Dtext (
/showthread.php?tid=206759)
[Help]3Dtext -
marrcko - 04.01.2011
hi everyone,
i have some problems
i have 3dtext
Код:
new Text3D:sfpd
sfpd = Create3DTextLabel("Policijos patrulis.",MELYNA,30.0,40.0,50.0,40.0,0);
first command add it
Код:
Attach3DTextLabelToVehicle(sfpd,vehicleid, 0.0, 0.0, 0.5);
and other command should delete 3dtext
Код:
Delete3DTextLabel(sfpd);
but it didn't.why?
P.S. sry for bad english
Re: [Help]3Dtext -
*IsBack - 04.01.2011
Quote:
Originally Posted by marrcko
hi everyone,
i have some problems
i have 3dtext
Код:
new Text3D:sfpd
sfpd = Create3DTextLabel("Policijos patrulis.",MELYNA,30.0,40.0,50.0,40.0,0);
first command add it
Код:
Attach3DTextLabelToVehicle(sfpd,vehicleid, 0.0, 0.0, 0.5);
and other command should delete 3dtext
Код:
Delete3DTextLabel(sfpd);
but it didn't.why?
P.S. sry for bad english
|
It didn't what? It didn't appeared,attached to vehicle or destroyed?
Re: [Help]3Dtext -
marrcko - 04.01.2011
its didnt destroyed
Re: [Help]3Dtext -
MadeMan - 04.01.2011
Where do you create it?
Re: [Help]3Dtext -
FreshDoubleX - 04.01.2011
Show us your create command.
Re: [Help]3Dtext -
marrcko - 04.01.2011
with this 3dtext created
Код:
if(strcmp(cmdtext, "/priskirti", true,10)==0 && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
vehicleDB[vehicleid][firmos1]=true;
Attach3DTextLabelToVehicle(sfpd,vehicleid, 0.0, 0.0, 0.5);
SendClientMessage(playerid,MELYNA,"* Masina priskirta policijai");
return; 1
}
with this deleted
Код:
if(strcmp(cmdtext, "/pasalinti", true,10)==0 && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
vehicleDB[vehicleid][firmos1]=false;
Delete3DTextLabel(sfpd);
SendClientMessage(playerid,MELYNA,"* Masina pasalinta is policijos");
return 1;
}
Re: [Help]3Dtext -
marrcko - 05.01.2011
well?
does anyone know why?
Re: [Help]3Dtext -
iggy1 - 05.01.2011
I think there might be a bug i posted this topic a couple of days ago
https://sampforum.blast.hk/showthread.php?tid=205814
I'm going to bump it later and post in bugs section if still no-one replies.
Re: [Help]3Dtext -
marrcko - 05.01.2011
i tried to 'cheat' on script but it still nothing
Код:
if(strcmp(cmdtext, "/pasalinti", true,10)==0 && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(playerDB[playerid][plead]==1)
{
vehicleDB[vehicleid][firmos1]=false;
Update3DTextLabelText(sfpd,MELYNA," ");
SendClientMessage(playerid,MELYNA,"* Masina pasalinta is policijos");
return 1;}
its really bug?
maybe i am doing smth wrong?