A few Problems - 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: A few Problems (
/showthread.php?tid=238467)
A few Problems -
Rokzlive - 11.03.2011
I put some codes in my script and they dont work. They wont print strings or attach the 3d text or anything!
pawn Код:
public OnVehicleSpawn(vehicleid)
{
new string[100], carstring[100];
format(carstring,sizeof(carstring),"Bus %d",vehicleid);
cartext[vehicleid] = Create3DTextLabel(carstring,COLOR_YELLOW,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToVehicle(cartext[vehicleid], vehicleid, 0.0, 0.0, 2.0);
format(string,sizeof(string),"Vehicle %d has spawned!", vehicleid);
print(string);
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
new string[100];
format(string,sizeof(string),"Vehicle %d has died!", vehicleid);
Delete3DTextLabel(nametext[vehicleid]);
print(string);
return 1;
}
Thats an example, its supposed to log when the vehicle spawns or dies, and put a 3d text above it saying Bus: idhere
What did i do wrong?
Re: A few Problems -
Rokzlive - 11.03.2011
Anyone?
Re: A few Problems -
Zh3r0 - 11.03.2011
Quote:
Originally Posted by Rokzlive
Anyone?
|
Attaching 3DText labels to vehicles is bugged since 0.3, it's something Kalcor needs to take in consideration and fix it, as it's one of the most important functions around the 3DText functions.