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: Schneider
Forum: Scripting Help 11/03/2015, 02:49 AM
Replies: 2
Views: 374
Posted By Schneider
Re: help error

If you would have used proper indentation (as the first warning already suggests to you) you would see the mistake right away.
Forum: Filterscripts 10/03/2015, 07:02 PM
Replies: 18
Views: 3,458
Posted By Schneider
Re: Simple Captcha System | Keep away your server from Bot(s)

What's up with this waste of resources?
new StoreItDude[9999];
Forum: Scripting Help 10/03/2015, 03:03 AM
Replies: 5
Views: 2,324
Posted By Schneider
Re: error 017: undefined symbol "TextDrawSetPreviewRot"

Looks like your includes are outdated (these function were included in 0.3x) so your server is older than that. Update to 0.3z or 0.3.7 (beta)
Forum: Scripting Help 10/03/2015, 03:00 AM
Replies: 5
Views: 536
Posted By Schneider
Re: [HELP]Reaction TK Points

There are many different file-writing systems (sa:mp's default, y_ini, dini, et cetra). Look up more information and tutorials to learn how to save and load info in/from a file.
Forum: Scripting Help 09/03/2015, 06:05 PM
Replies: 5
Views: 403
Posted By Schneider
Re: What Wrong Here?

CalvinC already gave you the answer, just read the error and read your code again and again until you have found the problem.
Forum: Scripting Help 09/03/2015, 05:59 PM
Replies: 2
Views: 286
Posted By Schneider
Re: Objects not loading for some reason.

That log gives you the cause of the problem 340 times... how could you not see that?
Forum: Scripting Help 06/03/2015, 01:32 PM
Replies: 15
Views: 943
Posted By Schneider
Re: Minor bug with /register command

You forget to actually get the time...
gettime(Hours, Minutes, Seconds);
Forum: Scripting Help 04/03/2015, 01:54 PM
Replies: 18
Views: 1,026
Posted By Schneider
Forum: Scripting Help 04/03/2015, 01:15 PM
Replies: 18
Views: 1,026
Posted By Schneider
Re: Help with a loop. [EASY]

@Jimmy:
- His code has proper indentation
- The 'random words' like "goto" and "do" are valid functions. http://wiki.sa-mp.com/wiki/Control_Structures#do-while

@Xysiaris:
You forgot to add...
Forum: Scripting Help 03/03/2015, 09:39 PM
Replies: 10
Views: 612
Posted By Schneider
Re: Setting skin after use of command

You'll figure it out:

new LastSkin[MAX_PLAYERS];

LastSkin[playerid] = GetPlayerSkin(playerid);

SetPlayerSkin(playerid, LastSkin[playerid]);
Forum: Scripting Help 03/03/2015, 07:23 PM
Replies: 2
Views: 388
Posted By Schneider
Re: Help need with a gps system

Here you go:
http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
Forum: Scripting Help 03/03/2015, 02:20 PM
Replies: 12
Views: 641
Posted By Schneider
Re: Need script for headshot

How could you not be able to figure it out while ****** comes up with 21900 search-results?
Forum: Scripting Help 03/03/2015, 01:49 PM
Replies: 6
Views: 415
Posted By Schneider
Re: Chat limite

The limit-size of a clientmessage is 128 characters. All the colors, playername and id already take up 100 characters, so there are only 28 characters left for the actual text...
Just remove all the...
Forum: Scripting Help 02/03/2015, 11:49 PM
Replies: 2
Views: 338
Posted By Schneider
Re: message in a row

//Top of script:
new CurrentMessage;


public RandomMsg()
{
switch(CurrentMessage)
{
case 0: { SendClientMessageToAll(COLOR_SERVERMSG, "message 1"); CurrentMessage++; }
...
Forum: Scripting Help 27/02/2015, 02:47 PM
Replies: 3
Views: 564
Posted By Schneider
Re: Dini works particulary

You never actually retrieve the skin-data from the file.

//Before using SetPlayerSkin add:

PlayerInfo[playerid][pSkin] = dini_Int(file, "Skin");
Forum: Scripting Help 27/02/2015, 02:40 PM
Replies: 9
Views: 598
Posted By Schneider
Re: Randomizer problem

I'm not sure if it's the most efficient way, but try this:
(Credits to Slice for the ShuffleArray-function).

//Top of script:

new Plates[25];
new PlateOrder[25];
new PlateCount;
new Timer;
Forum: Scripting Help 27/02/2015, 01:59 AM
Replies: 6
Views: 452
Posted By Schneider
Re: Fuction doesn't work

If you want to pass a value to a function (in this case the playerid) you have to use SetTimerEx

SetTimerEx("TerminoCargarObjetos", 3500, false, "u", playerid);
Forum: Scripting Help 26/02/2015, 10:14 PM
Replies: 6
Views: 423
Posted By Schneider
Re: /stats

Right for output, wrong for input.
Forum: Includes 26/02/2015, 09:39 PM
Replies: 16
Views: 2,575
Posted By Schneider
Re: K_Map Icon Streamer

Why? Everybody has freedom of speech so everyone can express their opinions, although I agree flaming like $$inSane does is not necessary.

Dominik523 has a good point and the others asking you...
Forum: Scripting Help 26/02/2015, 09:35 PM
Replies: 2
Views: 338
Posted By Schneider
Re: AddCommas issue.

@Aerotactics: He already solved it. (Read the last line...)
Forum: Includes 26/02/2015, 07:44 PM
Replies: 16
Views: 2,575
Posted By Schneider
Re: K_Map Icon Streamer

I do not believe that applies to scripting. Server-owners are not going to use a less efficient, less useful system just to 'give the starter a chance'. They want what is best for their server and...
Forum: Scripting Help 26/02/2015, 05:07 PM
Replies: 3
Views: 462
Posted By Schneider
Re: Formatting number.

%09d
Will give a number with 9 digits.

for example:

new number = 312;
new str[24];
format(str, sizeof(str), "Number: %08d", number);
print(str);
Forum: Scripting Help 26/02/2015, 04:33 PM
Replies: 11
Views: 1,728
Posted By Schneider
Re: Anti command flood

Well, you said you want to kick a player if he performs 3 or more commands in 1 second. If that's the case there should be less than 334 milliseconds (= 1/3 second) between 2 commands.

When a...
Forum: Scripting Help 26/02/2015, 04:24 PM
Replies: 11
Views: 1,728
Posted By Schneider
Re: Anti command flood

new LastCommand[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if((GetTickCount() - LastCommand[playerid]) < 334) Kick(playerid);
else LastCommand[playerid] =...
Forum: Scripting Help 26/02/2015, 03:18 PM
Replies: 2
Views: 323
Posted By Schneider
Re: Operators in switch statements?

You could use negative numbers and/or a default statement..

case -22..-14:
case -13..-1:
case 0..1:
case 2..5:
default:
Showing results 1 to 25 of 500

 

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


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