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: Luka P.
Forum: Filterscripts 14/04/2013, 12:28 PM
Replies: 4,009
Views: 2,164,716
Posted By Luka P.
Re: Useful Functions

Function to check is some IP address within an IP range. You need to have strexplode (http://forum.sa-mp.com/showthread.php?t=362764).


stock ip2int(ip_address[16])
{
new sIP[4][4], IP[4];...
Forum: Plugin Development 13/04/2013, 06:43 PM
Replies: 6,156
Views: 2,270,360
Posted By Luka P.
Re: [REL] MySQL Plugin (****** Project)

Thanks, it works flawlessly.
Forum: Plugin Development 13/04/2013, 06:28 PM
Replies: 6,156
Views: 2,270,360
Posted By Luka P.
Re: [REL] MySQL Plugin (****** Project)

No, it returns 1 (i.e. ordinal number of connection) no matter what.
Forum: Plugin Development 13/04/2013, 06:03 PM
Replies: 6,156
Views: 2,270,360
Posted By Luka P.
Re: [REL] MySQL Plugin (****** Project)

I can't check is server connected to the MySQL database, I suspect that mysql_ping is not working as it should.


new gMySQL_con;

public OnGameModeInit()
{
gMySQL_con =...
Forum: Filterscripts 26/09/2012, 08:05 PM
Replies: 4,009
Views: 2,164,716
Posted By Luka P.
Re: Useful Functions

But I think that will not compile with non-constant variables like "playerid" for example
Forum: Filterscripts 11/09/2012, 03:23 PM
Replies: 4,009
Views: 2,164,716
Posted By Luka P.
Re: Useful Functions

It's actually the same speed, only difference is you have to write CALC_ADD, CALS_MINUS, CALC_MULTIPLY, CALC_DIVIDE instead of 1, 2, 3, 4.
Forum: Filterscripts 08/09/2012, 10:23 PM
Replies: 4,009
Views: 2,164,716
Posted By Luka P.
Forum: Filterscripts 08/09/2012, 04:12 PM
Replies: 4,009
Views: 2,164,716
Posted By Luka P.
Re: Useful Functions

What's the point of that function? You can simply write n*n, n/n, n+n, n-n.
Forum: Everything and Nothing 29/08/2012, 11:06 PM
Replies: 475
Views: 62,692
Posted By Luka P.
Re: what cell phone do you have?

iPhone 4, Galaxy S2. But my primary phone is S2 and I will probably replace iP4 with Samsung ATIV S when it's released.
Forum: Includes 07/08/2012, 03:36 AM
Replies: 10
[Include] IRC Bot
Views: 10,091
Posted By Luka P.
Re: IRC Bot

@Niko_boy I don't think you understand what sockets are
http://en.wikipedia.org/wiki/Network_socket
Forum: Filterscripts 10/04/2012, 06:15 PM
Replies: 4,009
Views: 2,164,716
Posted By Luka P.
Re: Useful Functions

about this "negativepositive" funcition, why don't you just multiply it by -1?
like

#define negativepositive(%0) ((%0)*(-1))
Forum: General 18/03/2012, 10:55 PM
Replies: 36
Views: 4,497
Posted By Luka P.
Re: Freeroam or Cops and Robbers?

This really is not going to be a good gamemode. Somehow, I don't think you are able to make better string splitter. You should use libraries/plugins from SA-MP forum, and focus on creating server...
Forum: Maps 03/03/2012, 04:26 PM
Replies: 102
Views: 32,297
Posted By Luka P.
Re: Los Santos richman island.

Dude, learn what is forum and don't tell me what to do, I'm here a lot longer than you. I would like to have this map on my server, so I asked if someone can re-upload it, because the code on...
Forum: Maps 03/03/2012, 02:29 PM
Replies: 102
Views: 32,297
Posted By Luka P.
Re: Los Santos richman island.

Can anyone reupload this?
Forum: Filterscripts 03/03/2012, 01:37 PM
Replies: 1,168
Sticky: Useful Snippets
Views: 577,703
Posted By Luka P.
Re: Useful Snippets

@Jack_SMalls DAFUQ?!
Forum: Scripting Help 01/03/2012, 11:22 PM
Replies: 1
Views: 692
Posted By Luka P.
Re: Team Balance Help

Remove player from the team on every death and then re-set his team back when player spawns by looking up the skin ID.
Forum: Plugin Development 01/03/2012, 07:58 PM
Replies: 6,156
Views: 2,270,360
Posted By Luka P.
Re: [REL] MySQL Plugin (R7 - 25/02/12)

How to check is server connected to the database?
Even if I enter wrong user/pass, mysql_ping() will work because it's connected to the MySQL server.
Forum: General 01/03/2012, 06:30 PM
Replies: 11
Views: 2,528
Posted By Luka P.
Re: y_ini vs BUD?

Databases are generally much faster? Excuse me?
Forum: General 27/02/2012, 07:33 PM
Replies: 11
Views: 2,365
Posted By Luka P.
Re: Suggestion - rules for hosted tab listing & new tabs

That was just example, feel free to suggest something. My point is there needs to be some changes done.
Forum: General 27/02/2012, 07:22 PM
Replies: 11
Views: 2,365
Posted By Luka P.
Lightbulb Suggestion - rules for hosted tab listing & new tabs

I took a look on how many servers there are in "Hosted" tab listing, and there is 196 servers. Are you serious? The problem is that plenty of servers have 0 players all the time. I think you should...
Forum: Scripting Help 25/02/2012, 01:54 PM
Replies: 9
Views: 1,718
Posted By Luka P.
Re: Anti spam?

Here you go. (http://forum.sa-mp.com/showthread.php?t=169530)
Forum: Scripting Help 22/02/2012, 02:29 AM
Replies: 4
Views: 865
Posted By Luka P.
Re: Team Balance Problem

This should do it.
Naskripto sam ti ovo, al svejedno si budala <3



#define TEAM_SWAT (0)
#define TEAM_TERROR (1)

#define TEAM_SWAT_COLOR (0xFF4600FF)
#define TEAM_TERROR_COLOR ...
Forum: Filterscripts 21/02/2012, 11:09 PM
Replies: 4,009
Views: 2,164,716
Posted By Luka P.
Re: Useful Functions

@TheGamer! Player name is 20 chars long at most, and IP address is always 16 chars long. +use foreach by ****** for player looping (it's more efficient). Here's my version. It will detect foreach and...
Forum: Scripting Help 20/02/2012, 06:55 PM
Replies: 3
Views: 1,281
Posted By Luka P.
Re: How to generate password?

Thanks. This works now.


stock GeneratePassword()
{
new password[9];

new charset[2][26] =
{
{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',...
Forum: Scripting Help 20/02/2012, 06:40 PM
Replies: 3
Views: 1,281
Posted By Luka P.
Re: How to generate password?

I asked about generating password, not hashing.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 11:49 PM.


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