SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: Zonoya
Forum: Scripting Help 31/08/2015, 06:14 PM
Replies: 5
Views: 382
Posted By Zonoya
Re: Genuine Confusion

Hmm, good to know, thank you for the help. :)
Forum: Scripting Help 31/08/2015, 06:05 PM
Replies: 5
Views: 382
Posted By Zonoya
Re: Genuine Confusion

Oh.... That's.... Really God damn simple actually, I can't believe I didn't think of that.

Thank you.

Oh, another question, though...

With the:

case 1..100
Forum: Scripting Help 31/08/2015, 05:20 PM
Replies: 5
Views: 382
Posted By Zonoya
Re: Genuine Confusion

Apologies for the bump, but some help with this issue would be greatly appreciated.
Forum: Scripting Help 30/08/2015, 09:58 PM
Replies: 8
Views: 522
Posted By Zonoya
Re: Delayed saving?

True. Look at Abagail's post, Choco, make sure all that applies, as they have said, it should work assuming you're not saving information that uses function values (position, money, score) unless you...
Forum: Scripting Help 30/08/2015, 09:51 PM
Replies: 8
Views: 522
Posted By Zonoya
Re: Delayed saving?

It's probably because you're trying to save for a specific playerid, and because you're waiting, by the time you run the saveaccount code, the player has already left the game, OnPlayerDisconnect is...
Forum: Scripting Help 30/08/2015, 06:23 PM
Replies: 5
Views: 382
Posted By Zonoya
Genuine Confusion

I am genuinely baffled about how I'd go about doing this in my code, I have the code below, for displaying a dialog for the cars the player owns:

VehicleMenu(playerid)
{
new str[500], cars = 0;...
Forum: Scripting Help 26/08/2015, 03:36 PM
Replies: 8
Views: 395
Posted By Zonoya
Re: OnPlayerEnterVehicle Error

Well, the flag ID is 2914, all you'd do really is:

new Flag[MAX_PLAYERS]; or something if you're doing one flag for each player in a hydra, you'd put that at the top of your script. If not, just...
Forum: Scripting Help 26/08/2015, 03:27 PM
Replies: 8
Views: 395
Posted By Zonoya
Re: OnPlayerEnterVehicle Error

I can't, really, since I don't know what you're trying to do, you need to create an object to go on that vehicle, and then use the attach option to attach it, only you can really do it since I really...
Forum: Scripting Help 26/08/2015, 03:21 PM
Replies: 8
Views: 395
Posted By Zonoya
Re: OnPlayerEnterVehicle Error

You're trying to attach the object 'objectid', which isn't part of the OnPlayerEnterVehicle public call, you'd do something like:

new Object = CreateObject(bla bla bla)

And then under...
Forum: Scripting Help 26/08/2015, 02:31 PM
Replies: 2
Views: 399
Posted By Zonoya
Re: Vehicle Saving

I fixed it in the end, it just doesn't like car ID 1 in the server for some odd reason, I just reasoned that because it's for owned cars, it'll never have to unload ID 1, since cars the server makes...
Forum: Scripting Help 26/08/2015, 12:54 PM
Replies: 2
Views: 399
Posted By Zonoya
Vehicle Saving

Right... Back again.

I have a vehicle system that works perfectly for the most part, vehicle creation and everything is fine, and it always works without issue, it fills in any missing ID's on the...
Forum: Scripting Help 05/08/2015, 08:22 AM
Replies: 2
Views: 431
Posted By Zonoya
Re: Vehicle Respawning issues

I usually do, but give me a break, it was midnight when I wrote that code.
I fixed the indentation on my end this morning, when I was more with it, but I still can't see my issue.

Also, the...
Forum: Scripting Help 04/08/2015, 11:33 PM
Replies: 2
Views: 409
Posted By Zonoya
Re: Ways of saving (yini)

Arrays, perhaps?

Like, instead of:

pCrime0 all the way to fifteen, have


pCrime[15],
pCrimeReasons[15][128],
Forum: Scripting Help 04/08/2015, 11:29 PM
Replies: 2
Views: 431
Posted By Zonoya
Vehicle Respawning issues

So, back again, this time, having issues with respawning cars...

Relevant code below:


CMD:rc(playerid, params[])
{
new count = 0, respawncount = 0, pcount = 0;
for(new i = 0; i <...
Forum: Scripting Help 04/08/2015, 09:39 PM
Replies: 5
Views: 548
Posted By Zonoya
Re: Player name and password won't save into database.

'%e' tells mysql to escape the data, if I remember correctly, to avoid issues, it's a pretty recommended thing to do when using a mysql query with player names.
Forum: Scripting Help 03/08/2015, 05:01 PM
Replies: 3
Views: 518
Posted By Zonoya
Re: CreateDynamicCP Problem

Nevermind, it was an issue with having strings and floats in the same array. Fixed.
Forum: Scripting Help 03/08/2015, 04:25 PM
Replies: 7
Views: 682
Posted By Zonoya
Re: MetalDetectors Error

My apologies, that line is fine the way you had it, I got it wrong, the way it should look is:


DestroyDynamicObject(MetalDectors[id][detectorObject][0]);...
Forum: Scripting Help 03/08/2015, 03:47 PM
Replies: 7
Views: 682
Posted By Zonoya
Flowers Re: MetalDetectors Error

First off, if you haven't already, move:

new MetalDectors[MAX_METAL_DETECTORS][detectorData];

So that this is how your code part should look:


enum detectorData
{
detectorID,
Forum: Scripting Help 03/08/2015, 01:35 PM
Replies: 7
Views: 682
Posted By Zonoya
Re: MetalDetectors Error

Change:

new MetalDectors[MAX_METAL_DETECTORS][dectectorData];

To:

new MetalDectors[MAX_METAL_DETECTORS][detectorData];
Forum: Scripting Help 03/08/2015, 12:52 PM
Replies: 3
Views: 518
Posted By Zonoya
Re: CreateDynamicCP Problem

The z coord was taken from inside a roadtrain, so I doubt that's a major issue, as for changing 'float' to 'Float', that just gave me 33 tag mismatch errors, as well as not working :s
Forum: Scripting Help 03/08/2015, 12:46 PM
Replies: 3
Views: 518
Posted By Zonoya
CreateDynamicCP Problem

Alright, so, I'll cut straight to the issue here. I've been making a /work system for my GM, and this is what I have for it thus far:

new tfCPs[][] = {
{float:1727.6549, float:976.9305,...
Forum: Scripting Help 03/08/2015, 12:40 PM
Replies: 2
Views: 323
Posted By Zonoya
Re: Function should return a value?!

That IS a bit odd, I put it into my compiler, putting in proper indents, so it looked like this:

stock fdeleteline(filename[], line[])
{
if(fexist(filename)){
new temp[256];
new...
Forum: Scripting Help 29/07/2015, 08:06 AM
Replies: 1
Views: 444
Posted By Zonoya
Re: MySQL Error 1064

Nevermind, I fixed it, must've been having a bad night haha.
Forum: Scripting Help 28/07/2015, 11:13 PM
Replies: 1
Views: 444
Posted By Zonoya
MySQL Error 1064

Right, I'm back.... Again.

This time, I'm getting this error from mysql:

(error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for...
Forum: Scripting Help 19/03/2015, 08:40 PM
Replies: 24
Views: 1,251
Posted By Zonoya
Re: Speedo

Ah, haha, cheers, Yeah, I'm messing more with how it's working out, the numbers will be tampered with till I'm happy with it haha
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 12:36 AM.


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