SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 15 of 15
Search took 0.00 seconds.
Search: Posts Made By: badnum23
Forum: Tutorials 10/01/2013, 04:03 AM
Replies: 8
Views: 1,365
Posted By badnum23
Re: How to make a loop through connected players

[HK]Ryder[AN], I can explain to you anything, but I think you've already know it all. I don't have good spelling skills, so I can't explain the work of all the system good.
VincentDunn, ok....
Forum: Tutorials 09/01/2013, 09:00 PM
Replies: 8
Views: 1,365
Posted By badnum23
Re: How to make a loop through connected players

2 1 3 4 0
delete 1
2 (1) 3 4 0
2 3 3 4 0
2 3 4 4 0
2 3 4 0 0
and pListSize--; so final array is
2 3 4 0

So you should not use -1 instead of +1
Forum: Tutorials 09/01/2013, 08:56 PM
Replies: 8
Views: 1,365
Posted By badnum23
Re: How to make a loop through connected players

But if you don't use ****** includes you can't use foreach.
Forum: Tutorials 09/01/2013, 08:46 PM
Replies: 8
Views: 1,365
Posted By badnum23
How to make a loop through connected players

...and without this check IsPlayerConnected(playerid). I want to tell you how to make loops a little bit faster.

The base
First of all. Create a two variables and one define.


new...
Forum: Scripting Help 03/01/2013, 09:44 AM
Replies: 4,144
Views: 635,066
Posted By badnum23
Re: Little coding questions - For general minor queries 5

Hi. What is more correctly?
This:

new t = -1;

for (new i = 0; i < 6; i++)
if (vehid == rocketVeh[i])
return t;

return -1;
Forum: Scripting Help 31/05/2012, 07:55 PM
Replies: 8
Views: 938
Posted By badnum23
Re: Error, Help me!

As you can see here is

But in the 29533 line doesn't exist "refund" variable, only "RefundID".
You should find where "refund" is using.
Forum: Scripting Help 31/05/2012, 07:50 PM
Replies: 8
Views: 938
Posted By badnum23
Re: Error, Help me!

Show 29532 line
Forum: Scripting Help 31/05/2012, 07:11 PM
Replies: 4
Views: 1,097
Posted By badnum23
Re: Best administration system? (+Rep)!

http://forum.sa-mp.com/showthread.php?t=308624
Updated 31.05.12
Also, there are many links to admin systems, but most of them haven't updated
http://forum.sa-mp.com/showthread.php?t=283602
Forum: Scripting Help 31/05/2012, 07:05 PM
Replies: 3
Views: 582
Posted By badnum23
Re: Warning

public OnPlayerEnterVehicle (playerid, vehicleid, ispassenger)
{
new Text:Textdrawtext1, Text:Textdrawtext3;
new string [256];
format (string, sizeof (string), "~ r ~ g ~ Press ~ 2 ~ g...
Forum: Scripting Help 31/05/2012, 06:30 PM
Replies: 4
Views: 886
Posted By badnum23
Re: Givegun

Try this:

if (gun == 38) return 1;

Add it after:

if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE:...
Forum: Scripting Help 31/05/2012, 06:18 PM
Replies: 4
Views: 886
Posted By badnum23
Re: Givegun

You should to improve your anti-cheat code. Search for if (GetPlayerWeapon(playerid) == 38) or something like that in your anti-cheat system and then add if-then statement before Ban command
Forum: Scripting Help 31/05/2012, 06:10 PM
Replies: 11
Views: 1,528
Posted By badnum23
Re: DialogResponse Issue

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_GATE)
{
new i = OpeningGate[playerid];
new password[MAX_STRING];
...
Forum: Scripting Help 31/05/2012, 08:32 AM
Replies: 9
Views: 2,085
Posted By badnum23
Re: [HELP]Gang Zone Capture

Create a function that will give money, score and new property to player.
For example:

forward gangZoneComplete(playerid);
public gangZoneComplete(playerid)
{
GivePlayerMoney(playerid, 5000);...
Forum: Scripting Help 30/05/2012, 06:39 PM
Replies: 4,144
Views: 635,066
Posted By badnum23
Forum: Scripting Help 30/05/2012, 05:49 PM
Replies: 4,144
Views: 635,066
Posted By badnum23
Re: Little coding questions - For general minor queries 5

What is the main difference between
static new x[4] = {1,2,3,4};
and
new x[4] = {1,2,3,4}

Also, why use CMD:command_name(), but not


if (!strcmp("/cmd1", cmdtext, true))
{
Showing results 1 to 15 of 15

 

All times are GMT. The time now is 06:16 PM.


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