SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 228
Search took 0.01 seconds.
Search: Posts Made By: blewert
Forum: Scripting Help 18/01/2018, 08:12 AM
Replies: 12
Views: 654
Posted By blewert
Re: Anyone know?

Is it this one? We have the same teleport in our gamemode.


SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid, 226.1118, 1024.4648, 1084.0078);
Forum: Everything and Nothing 16/01/2018, 09:11 PM
Replies: 319
Views: 36,668
Posted By blewert
Re: Is any of the old peeps around?

not sure if much people remember me, but I still lurk around here occasionally
Forum: Scripting Help 17/09/2014, 10:54 AM
Replies: 10
Views: 1,258
Posted By blewert
Re: Help +rep easy

You were only missing two brackets, and there were only 2-3 indentation warnings!


if (strcmp("/takeoff", cmdtext, true, 10) == 0 || (strcmp("/t", cmdtext, true, 10) == 0)


to


if...
Forum: Scripting Help 14/09/2014, 01:45 PM
Replies: 8
Views: 758
Posted By blewert
Re: Player Name hellp

This is caused because SetPlayerName doesn't work when you set the same name with a different case:



To get around this, you have to temporarily set their name to something else, and then set...
Forum: Scripting Help 02/09/2014, 09:48 AM
Replies: 14
Views: 1,203
Posted By blewert
Re: Command don't work

this may work, but it's untested!


CMD:admins(playerid, params[])
{
//If somehow they're not connected, return false.
if(!IsPlayerConnected(playerid))
return false;

//If they're...
Forum: Scripting Help 21/06/2014, 10:14 PM
Replies: 6
Views: 1,014
Posted By blewert
Re: Hello, Random Float Numbers Problem!

I suppose you could use something like this to generate normalized random floating point numbers (between 0 and 1):


stock Float:frandnorm(const RAND_MAX = 32767)
{
//Using C's RAND_MAX...
Forum: Scripting Help 26/04/2014, 01:49 AM
Replies: 3
Views: 621
Posted By blewert
Re: Variable..

//Add 10 to the player's score.
PlayerInfo[playerid][score] += 10;


which is the same as


//Add 10 to the player's score.
PlayerInfo[playerid][score] = (PlayerInfo[playerid][score] + 10);
Forum: Scripting Help 02/03/2014, 02:46 PM
Replies: 3
Views: 1,302
Posted By blewert
Re: Vending machine ID?

something similar to this intrigued me a while back, so I ended up writing a script producing all(?) different types of vending machines in a line. The one you're looking for is non-solid (you can...
Forum: Includes 01/02/2013, 12:02 PM
Replies: 13
Views: 6,216
Posted By blewert
Re: [INC] FormatMoney()

It's probably because you're referencing the string in format as a number, not a string (i.e. %d not %s), as 36 is the ASCII value for a dollar sign (The function outputs the character $ + formatted...
Forum: Includes 01/02/2013, 11:17 AM
Replies: 13
Views: 6,216
Posted By blewert
Re: [INC] FormatMoney()

3 year bump?

Anyway, you're getting that error because the return value of FormatMoney is an array of characters, and you're trying to assign a variable which isn't an array the value of an...
Forum: Everything and Nothing 19/08/2012, 11:10 AM
Replies: 37
Views: 4,201
Posted By blewert
Re: Translation Party

http://translationparty.com/#10411143
I think I broke it :(
Forum: Scripting Help 19/07/2012, 10:56 PM
Replies: 2
Views: 1,128
Posted By blewert
Re: Add HP + Armor

Precision when using floats must be in the format "%.(precision)f", not "%(precision).f". (http://wiki.sa-mp.com/wiki/Floats#Float_-.3E_String)

Try:

...
Forum: Includes 09/07/2012, 08:39 PM
Replies: 71
Views: 20,184
Posted By blewert
Re: Textdraw Flags - Over 30 country flags

Where's Wales? :(

http://www.worldatlas.com/webimage/flags/countrys/europe/wales.gif
Forum: Filterscripts 05/07/2012, 10:02 PM
Replies: 9
[FilterScript] Pet Store(DIALOG)
Views: 4,983
Posted By blewert
Re: Pet Store(DIALOG)

Wow man nice. Never before have I been able to have an epileptic fit whilst I sip my Martini!

Now with this, I am never plagued by choosing one or the other. It's not a case or "this or that", but...
Forum: Everything and Nothing 30/06/2012, 07:08 AM
Replies: 3
Views: 1,271
Posted By blewert
Re: What software can I use to make a website banner?

http://puu.sh/EKkv
Jokes aside (MS Paint is a joke in itself), you're probably best off using Photoshop.

Or you could ****** a banner maker, and create some crappy one with super-cool stars and...
Forum: Everything and Nothing 13/06/2012, 05:31 PM
Replies: 8
Views: 1,643
Posted By blewert
Re: What Kind of Programmation Language?[Bloc Note]

Windows batch file. (hence .bat)

http://en.wikipedia.org/wiki/Batch_file
Forum: Scripting Help 10/06/2012, 09:56 PM
Replies: 5
Views: 976
Posted By blewert
Re: Help here

Two elses. Remove one.

Edit: actually you missed a brace after second else:


CMD:pd(playerid, params[])
{
if(PlayerInfo[playerid][pFaction] == 1)
{
if(pddoor1 == 0)
Forum: Scripting Help 06/06/2012, 12:34 PM
Replies: 3
Views: 633
Posted By blewert
Re: Help here a bit?

return 1; is outside of command, leadercmds never returns anything?
Forum: Scripting Help 06/06/2012, 12:23 PM
Replies: 7
Views: 819
Posted By blewert
Re: is this right?

Like everyone else said, no. SetPlayerPos takes in x, y and z variables to set position to, not player ids.

Also, I don't see the point in this line:


GetPlayerPos(playerid, X, Y, Z);

A...
Forum: Scripting Help 04/06/2012, 12:07 PM
Replies: 8
Views: 1,021
Posted By blewert
Re: Wanted help!

if(GetPlayerWantedLevel(playerid, 6)) return SetPlayerWantedLevel(playerid, 3);

GetPlayerWantedLevel only takes in one argument - the player's id. It then returns the player's current wanted...
Forum: Scripting Help 04/06/2012, 11:53 AM
Replies: 8
Views: 1,021
Posted By blewert
Re: Wanted help!

if( !strcmp(cmdtext, "/wanted") )
{
//They typed /wanted.

if( GetPlayerWantedLevel(playerid) == 5 )
{
//Player's wanted level is 5, set to 3.
SetPlayerWantedLevel(playerid, 3);...
Forum: Everything and Nothing 24/05/2012, 05:45 PM
Replies: 156
Views: 14,791
Posted By blewert
Re: What do you drink when coding?

Ginger beer all the way.
Forum: Scripting Help 16/05/2012, 01:51 PM
Replies: 3
Views: 727
Posted By blewert
Re: Move all text to code

To (de)indent portions of code?

It's Shift+Tab to de-indent code, and Tab to indent it.
Forum: Scripting Help 16/05/2012, 12:30 PM
Replies: 8
Views: 3,325
Posted By blewert
Re: Error 075: Input line too long (after subsitution)

"return;1" is invalid.


// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <streamer>
Forum: Gamemode Scripts 09/05/2012, 06:08 PM
Replies: 60
Views: 26,032
Posted By blewert
Re: Everystuff (2012) Freeroam|Stunt|DM

ah awesome. I loved the car cannon. :D

Yeah I'm not bad, you? Slowly becoming more active with sa-mp again, cool to see you back here again :D.

I guess we'll talk more on IRC tomorrow?
Showing results 1 to 25 of 228

 

All times are GMT. The time now is 04:53 AM.


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