SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: iggy1
Forum: Scripting Help 13/12/2017, 06:42 AM
Replies: 3
Views: 538
Posted By iggy1
Re: I want tutorial about place object guns in trunk vehicle

Check this post, you can use the map editor to find object offsets for vehicles.

http://forum.sa-mp.com/showthread.php?t=206939
Forum: Scripting Help 21/10/2017, 09:22 AM
Replies: 2
Views: 373
Posted By iggy1
Re: Pawn lib stopped working...

First thing i noticed is that you have used semi-colons ';' instead of colons ':' for your cases.

case 1;

Should be
case 1:
Forum: Scripting Help 16/04/2017, 09:21 AM
Replies: 7
Views: 679
Posted By iggy1
Re: Class selection buttons

Not coded for samp in a long time i might be wrong, but if IIRC you need to put the player into spectate when they connect, and return 0 in OnPlayerRequestClass if they are not logged.

public...
Forum: Scripting Help 23/11/2016, 02:06 PM
Replies: 4
Views: 5,779
Posted By iggy1
Re: Animations ids

EDIT: Didn't see GetAnimationName is same as index code. Oops.
Forum: Plugin Development 03/07/2016, 11:18 AM
Replies: 5
Views: 1,251
Posted By iggy1
Re: Commands with arguments

One easy way would be using a stringstream and std::getline. There are also many libraries out there that will do this more efficiently/faster like boost::tokenizer.

#include <sstream>
#include...
Forum: Scripting Help 06/06/2016, 10:22 AM
Replies: 7
Views: 623
Posted By iggy1
Re: Function to run on each hour

If your only syncing time it wont slow things down. There are no complex calculations or slow code involved. Easiest way would be to use a timer, set it to a time you want your accuracy to be within....
Forum: Scripting Help 05/06/2016, 10:50 AM
Replies: 26
Views: 2,014
Posted By iggy1
Re: Textdraw Intro

You have embedded a function header inside OnPlayerConnect.

forward TextDrawTimer(playerid);
public TextDrawTimer(playerid)

That is inside OnPlayerConnect, and should be another function...
Forum: Scripting Help 02/06/2016, 02:14 AM
Replies: 15
Views: 2,183
Posted By iggy1
Re: Hooking callbacks

IIRC each time you hook a callback you MUST use a unique prefix for the callback header.

I'm thinking you have hooked OnPlayerConnect more than once but defined 'L_OnPlayerConnect' each time....
Forum: Scripting Help 27/05/2016, 06:17 PM
Replies: 9
Views: 2,345
Posted By iggy1
Re: Stop an animation?

I think i get what you mean now, the player looses control while anim is played? So you can't run about while playing reloading animation? Unfortunately that's how anims work, you loose control while...
Forum: Scripting Help 27/05/2016, 12:55 PM
Replies: 9
Views: 2,345
Posted By iggy1
Re: Stop an animation?

Interval is amount of time to play animation in milliseconds. You are trying to play them for 1ms. I imagine that may be causing it, as your animations should only play for 1ms and not loop.

Try...
Forum: Scripting Help 16/05/2016, 04:58 PM
Replies: 6
Views: 704
Posted By iggy1
Re: Object collision (coordinates -3000/+3000)

Made a mistake smart ass. Worded it wrong that's all. It's obviously possible, didn't think i needed to state that, since the screens show what happens when you do.

And 'cannot' doesn't mean...
Forum: Scripting Help 16/05/2016, 11:59 AM
Replies: 6
Views: 704
Posted By iggy1
Re: Object collision (coordinates -3000/+3000)

Didn't say it wasn't possible. As you can see from the screenshots, it's possible. You get artifacts if you do though. I should have said you should not go above/below these values i guess... Or you...
Forum: Scripting Help 16/05/2016, 10:09 AM
Replies: 6
Views: 704
Posted By iggy1
Re: Object collision (coordinates -3000/+3000)

Your objects are outside the map.

Minimum x/y/z is -3000, and max is 3000. You cannot go above or below these values.
Forum: Scripting Help 15/05/2016, 05:35 PM
Replies: 23
Views: 1,294
Posted By iggy1
Re: dialog response not happening?

Still do as i said.

This will cause that exact problem.
//in gamemode
public OnDialogResponse(...)
{
if (dialogid == 1)
{
if (listitem == 0)
{
Forum: Scripting Help 15/05/2016, 05:02 PM
Replies: 23
Views: 1,294
Posted By iggy1
Re: dialog response not happening?

To narrow it down:

If this code is in your gamemode then, remove filterscripts from server.cfg and try again. If it works - one of those filterscripts are returning non zero and should be...
Forum: Scripting Help 14/05/2016, 11:00 AM
Replies: 11
Views: 1,099
Posted By iggy1
Re: Integer versus boolean

You can also store 32 true/false values in a single variable if you really want to save memory. By using bit flags.

enum PLAYER_FLAGS :(<<= 1)
{
LOGGED_IN = 1,
IN_RACE
};

new...
Forum: Scripting Help 14/05/2016, 08:16 AM
Replies: 3
Views: 377
Posted By iggy1
Re: Spawn

Correct. Also you don't need to use the 'veh' var if you only need to use it once. But really, you should be storing the vehicle id globally so it can be destroyed.


PutPlayerInVehicle(playerid,...
Forum: Scripting Help 10/05/2016, 01:31 PM
Replies: 10
Views: 566
Posted By iggy1
Re: What are THOOOOSE

Do this.

If you declare the function (with tag) before calling it, the warnings will go away.
Forum: Scripting Help 09/05/2016, 02:05 PM
Replies: 17
Views: 1,146
Posted By iggy1
Re: Amx To Pwn Help

This.

Others that said there will be a way, are saying that it is theoretically possible to do. But there is no current way to do it (at least not that i know of). And it's likely to stay that...
Forum: Scripting Help 08/05/2016, 07:01 AM
Replies: 6
Views: 616
Posted By iggy1
Re: Urgent Help! Error 36 empty statment

Not sure how i spotted it in all that plain text (lucky i guess)..

OnPlayerRequestClass has 3 opening braces but 4 closing braces.

There could be more problems there, just spotted that one and...
Forum: Scripting Help 07/05/2016, 03:20 PM
Replies: 4
Views: 633
Posted By iggy1
Re: Assigning SQLite result into two separate variables.

Yeah that was just an example, you was supposed to adapt that to your column names...

Not quite sure what you mean by "the whole point of this is how to separate them both without having to create...
Forum: Scripting Help 07/05/2016, 02:46 PM
Replies: 44
Views: 1,759
Posted By iggy1
Re: I've this problem with streamer,help.

After rotation parameters, the rest are optional so you shouldn't get this error if your include version matches your plugin version.
Forum: Scripting Help 07/05/2016, 02:35 PM
Replies: 44
Views: 1,759
Posted By iggy1
Re: I've this problem with streamer,help.

I'd comment most out for testing ;)
Forum: Scripting Help 07/05/2016, 02:19 PM
Replies: 44
Views: 1,759
Posted By iggy1
Re: I've this problem with streamer,help. REP+

Not sure what's causing that error, first thing that springs to mind is update your streamer include and recompile.
Forum: Scripting Help 07/05/2016, 02:13 PM
Replies: 44
Views: 1,759
Posted By iggy1
Re: I've this problem with streamer,help. REP+

Are you sure you installed the 2015 version? They might all have same name.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 05:59 AM.


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