SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 67
Search took 0.00 seconds.
Search: Posts Made By: Muhamed.pwn
Forum: Scripting Help 31/07/2013, 10:10 PM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
Forum: Scripting Help 29/07/2013, 10:01 PM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
Re: OnPlayerStateChange

Not even this..

I've done this function and I want it to be the vehicleid to check. I am not in need of the modelid.
Forum: Scripting Help 29/07/2013, 05:54 PM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
Re: OnPlayerStateChange

If anybody had the same issue and found a solution, please share it.
Forum: Scripting Help 28/07/2013, 03:42 PM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
Re: OnPlayerStateChange

It doesn't even printed something.

MechanicCar needs vehicleid to determine if the players vehicleid he is in is equal to some of the towtrucks.
Forum: Scripting Help 27/07/2013, 10:21 PM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
Re: OnPlayerStateChange

Debugged it already, it just won't come over the first check: "if(BusCar)..." while the BusCar stock returns 0 if the car isn't a bus and it stops the code from processing to the end!

Can't find a...
Forum: Scripting Help 27/07/2013, 10:09 PM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
Re: OnPlayerStateChange

Anyone got a such issue !?
I've looked into another gamemode and OnPlayerStateChange is exactly like min (stocks and checking) and I just can't figure out where the problem lies.
Forum: Scripting Help 26/07/2013, 04:23 PM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
Re: OnPlayerStateChange

Yes I have, _Zeus replied.
Forum: Scripting Help 26/07/2013, 11:20 AM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
Re: OnPlayerStateChange

Tried 'newstate', TowTrucks works perfect, when I put MechanicCar first and BusCar under it then BusCar won't work!

JusstinRoller, tried with yours, still no luck.
Forum: Scripting Help 26/07/2013, 10:30 AM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
Re: OnPlayerStateChange

It's still the same, I don't know what's wrong with this but it's weird.
Forum: Scripting Help 25/07/2013, 08:50 PM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
Re: OnPlayerStateChange

OnPlayerStateChange returns 1, here's the MechanicCar stock (it's the same as BusCar):
stock MechanicCar(vehicleid)
{
for(new i;i <= sizeof(TowTrucks);i++)
{
if(vehicleid ==...
Forum: Scripting Help 25/07/2013, 08:28 PM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
Re: OnPlayerStateChange

Doesn't work, either.
Forum: Scripting Help 25/07/2013, 07:32 PM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
Re: OnPlayerStateChange

Still the same.
Forum: Scripting Help 25/07/2013, 07:11 PM
Replies: 23
Views: 1,630
Posted By Muhamed.pwn
OnPlayerStateChange

Hey.

I have a small issue with OnPlayerStateChange.


I check if the player is the Driver, then under this code I add another code for checking if the player is in a Job car to (not)remove them...
Forum: Scripting Help 03/07/2013, 04:03 PM
Replies: 4
Views: 597
Posted By Muhamed.pwn
Re: Assign specific ID to a vehicle

You are right.
I tought to do it so, but what to store in the players variable to acces the vehicle then ex. for saving!?
Forum: Scripting Help 03/07/2013, 03:52 PM
Replies: 4
Views: 597
Posted By Muhamed.pwn
Assign specific ID to a vehicle

Me again..

I made a COS based on the servers vehicleids, so I can't destroy a created car. If I do so the vehicle ids will mess up so I need delete all COS vehicles and start buying them again.
...
Forum: Scripting Help 02/07/2013, 01:13 PM
Replies: 5
Views: 1,299
Posted By Muhamed.pwn
Re: sscanf error: System not initialised.

EDIT

FIXED

For everyone else having this error just remove a_npc from includes list.
Forum: Scripting Help 02/07/2013, 01:03 PM
Replies: 5
Views: 1,299
Posted By Muhamed.pwn
sscanf error: System not initialised.

Hey.

After updating all includes randomly, and recompiling my script I get this sscanf error:

[16:06:46] sscanf error: System not initialised.

I jus can't find the solution for this!

Hope...
Forum: Scripting Help 29/06/2013, 03:27 PM
Replies: 2
Views: 451
Posted By Muhamed.pwn
Re: inputtext

Fixed myself, thanks.
Forum: Scripting Help 29/06/2013, 03:15 PM
Replies: 2
Views: 451
Posted By Muhamed.pwn
inputtext

Hey..

I'm using 'inputtext' to get the name of the listitem in a dialog (DIALOG_STYLE_LIST)

Everything works fine for now but inputtext prints with a space a the end.

ex. ...
Forum: Scripting Help 23/06/2013, 07:10 PM
Replies: 2
Views: 676
Posted By Muhamed.pwn
Re: testLOS

Thanks
Forum: Scripting Help 23/06/2013, 06:34 PM
Replies: 2
Views: 676
Posted By Muhamed.pwn
testLOS

Hey

I just can't figure out how to configure testLOS on CreateDynamic3DTextlabel to be NOT visibile trough SA Objects.

Here is how I've done it:...
Forum: Scripting Help 20/06/2013, 06:51 AM
Replies: 3
Views: 643
Posted By Muhamed.pwn
Re: Wheels

Ok..

I add a component to the vehicle while I'm spawning but it won't attach to the vehicle until I get in it and type /modcar .. It just won't wait for me everytime I must type the command.
Forum: Scripting Help 19/06/2013, 02:54 PM
Replies: 3
Views: 643
Posted By Muhamed.pwn
Re: Wheels

I already saved the wheels in a file but they just wont assign to the car when I log in, just when I am in the car and tune with a comand they come back.
Forum: Scripting Help 19/06/2013, 02:40 PM
Replies: 3
Views: 643
Posted By Muhamed.pwn
Wheels

Hello,

I have a simple question.
Is there a way to assign wheels (Atomic,Import.. etc.) to a car when the driver is not in that car !?
I need it for my COS.

Thanks..
Forum: Scripting Help 19/06/2013, 07:38 AM
Replies: 0
Views: 415
Posted By Muhamed.pwn
Variable reset

Hello,

I have a question !
How do I keep a variable value when the server restart without saving it !?

If I have a variable and add a value to it ex. 5 and then restart the server the value is...
Showing results 1 to 25 of 67

 

All times are GMT. The time now is 05:25 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.