Search Results
Check this post, you can use the map editor to find object offsets for vehicles.
https://sampforum.blast.hk/showthread.php?tid=206939
313
First thing i noticed is that you have used semi-colons ';' instead of colons ':' for your cases.
Код:
case 1;
Should be
Код:
case 1:
233
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.
Код:
publi...
388
EDIT: Didn't see GetAnimationName is same as index code. Oops.
221
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.
PHP код:
#include <sstr...
772
Quote:
Originally Posted by Jonesy96
I don't particularly want to have a timer that's running a function every second in all honesty, it's only going to slow things down.
If your only ...
548
You have embedded a function header inside OnPlayerConnect.
PHP код:
forward TextDrawTimer(playerid);
public TextDrawTimer(playerid)
That is inside OnPlayerConnect, and should be anot...
1,124
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. Change...
610
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 ...
507
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 incr...
507
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 'imposs...
366
Quote:
Originally Posted by NaS
Wrong, you can.
It's just not very recommended because there are some bugs happening, but it's definitely possible.
Didn't say it wasn't possible. As you...
366
Your objects are outside the map.
Minimum x/y/z is -3000, and max is 3000. You cannot go above or below these values.
366
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 ...
496
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(player...
270
Quote:
Originally Posted by Dayrion
«You can speed up the parsing/compilation process by declaring the relevant functions before using them. »
Do this.
If you declare the function (w...
464
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 stopp...
354
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 a ...
277
You need to install Visual C++ redistributable packages (vs2015):
https://www.microsoft.com/en-us/down....aspx?id=48145
380
I wouldn't obfuscate code, it makes it harder to read for you too, and can still be read by someone who is motivated.
You should keep backups of your code. If there was a way to decompile it, you wo...
448