SA-MP Forums Archive
What the heck? - 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: What the heck? (/showthread.php?tid=191935)



What the heck? - Gh0sT_ - 20.11.2010

Hello all.. What's wrong with this script? (It's show last car user nick name. ) (Ex: I leave SFPD car, and when another player entering sfpd player get message with my name, and some text in LT language.. BUT, if you are entering SFPD car first (like after server rr) you will don't get message.

http://pastebin.com/QBCB4wS7

But, when i enter SFPD car 3times ( after rr )

I get this:

Paskutinis maљinoje sedėjo . (. - just ., not nick name.. )


Re: What the heck? - WillyP - 20.11.2010

Because you are the first person in the vehicle. Put a example name for the first person to enter the car.

This forum requires that you wait 120 seconds between posts. Please try again in 42 seconds.


Re: What the heck? - Gh0sT_ - 20.11.2010

Yes, but script does only for first time (LIKE SERVER RESTART )

EX:

*** gmx ***
entering random car first time: no message
entering random car second time: message : Paskutinis mašinoje sedėjo %s.


Re: What the heck? - WillyP - 20.11.2010

Set a default name. Use variables to figure out if it's the first time the car has been entered, then for other players who enter the car, it shows previous names (as normal).

This forum requires that you wait 120 seconds between posts. Please try again in 15 seconds.


Re: What the heck? - Gh0sT_ - 20.11.2010

Well, this is already 'created'. :>


Re: What the heck? - WillyP - 20.11.2010

I don't understand. What is already 'created'?


Re: What the heck? - Gh0sT_ - 20.11.2010

Quote:

Set a default name. Use variables to figure out if it's the first time the car has been entered, then for other players who enter the car, it shows previous names (as normal).

This..

In this script only 1bug, with name showing. :/ :\


Re: What the heck? - WillyP - 20.11.2010

Well set a random name?!


Re: What the heck? - Gh0sT_ - 20.11.2010

Why random? I just need to show to player another player name.

another player name - who was last user of vehicle


Re: What the heck? - WillyP - 20.11.2010

Well for the first time the car will always show smth like: Last owner: -

Because noone has entered it. Either leave it as it is or edit it to make a name.