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: Gh0sT_
Forum: Plugin Development 14/09/2011, 06:55 PM
Replies: 6,158
Views: 2,355,222
Posted By Gh0sT_
Re: [REL] MySQL Plugin R6-2 - 17/07/11

So.. I just need:

new Query[62], Name[24];
format(Query, lenght, "SELECT `Name` FROM `players` WHERE `something='%d'", value);
mysql_query(Query);
mysql_store_result();
mysql_fetch_row(Name);...
Forum: Plugin Development 14/09/2011, 01:12 PM
Replies: 958
[Plugin] CrashDetect
Views: 390,993
Posted By Gh0sT_
Re: crashdetect plugin

When I turn off the server:



And, as I see if this plugin has found an error, it shows the line.. For me - not?
Forum: Plugin Development 14/09/2011, 11:37 AM
Replies: 6,158
Views: 2,355,222
Posted By Gh0sT_
Re: [REL] MySQL Plugin R6-2 - 17/07/11

Well, AFAIK mysql_get_field is slow, so its better to use sscanf. One question, does this will work? I want to get variable "Name" and store into a string. I can't test it ATM, because Im busy :<
...
Forum: Scripting Help 13/09/2011, 11:45 AM
Replies: 2,433
Views: 944,772
Posted By Gh0sT_
Re: SA-MP 0.3d RC1 test version

Awesome, now its very much easier creating anti hp hack
Forum: Scripting Help 11/09/2011, 01:43 PM
Replies: 3,248
Views: 695,151
Posted By Gh0sT_
Forum: Scripting Help 10/09/2011, 07:18 PM
Replies: 3,248
Views: 695,151
Posted By Gh0sT_
Re: Script Request Thread #5

TimestampToDate

it would convert mktime value to date(e.g: 2011-09-02 12:12:12)

I have one function, but its outdated I think, created in 2009

mktime function:

stock mktime(hour, minute,...
Forum: Scripting Help 10/09/2011, 03:12 PM
Replies: 3,248
Views: 695,151
Posted By Gh0sT_
Re: Script Request Thread #5

GetWeekDay - NO, not the day of the month, but WEEK day. I found it using search, but its created in 2009, so I think its outdated :l

Thanks

EDIT: I found other one, how about this?
...
Forum: Scripting Help 10/09/2011, 01:08 PM
Replies: 14
Views: 2,861
Posted By Gh0sT_
Re: Quetion about the casino

Then player will can create some money with any cheat
Forum: Scripting Help 10/09/2011, 12:30 PM
Replies: 7
Views: 4,848
Posted By Gh0sT_
Re: /top10 with mysql.

HiC >>> why not just mysql_row_count?
Forum: Scripting Help 10/09/2011, 09:45 AM
Replies: 4,149
Views: 640,047
Posted By Gh0sT_
Re: Little coding questions - For general minor queries 5

Is this syntax good?

if((variable[playerid] || variable2[playerid]) > 0)
Forum: Scripting Help 09/09/2011, 06:33 PM
Replies: 2
Views: 909
Posted By Gh0sT_
Re: any way?

It's similiar to that I want, but not so much. Since I dont saw any other same scripts, I don't know, how to create a function which will convert timestamp to date(YY-DD-MM HH:MM). I just want to...
Forum: Scripting Help 09/09/2011, 04:09 PM
Replies: 2
Views: 909
Posted By Gh0sT_
any way?

Hi everyone, how can I optimizate this? This function converts timestamp to date:

stock date(timestamp)
{
new year = 1970, day = 0, month = 0, hour = 0, mins = 0, sec = 0;
new...
Forum: Includes 08/09/2011, 07:17 PM
Replies: 27
Views: 10,279
Posted By Gh0sT_
Re: YBANK - Easy & Very simple to use! V1

Use S-ALS or ALS to hook callbacks, instead of saying that you must add line X and line X to callback X and callback X
Forum: Scripting Help 08/09/2011, 05:19 PM
Replies: 3
Views: 963
Posted By Gh0sT_
Re: I'm looking for ...

http://forum.sa-mp.com/showthread.php?t=252372

this?
Forum: Scripting Help 08/09/2011, 12:17 PM
Replies: 5
Views: 1,142
Posted By Gh0sT_
Re: Which 1?

bumpp Xd
Forum: Scripting Help 07/09/2011, 07:46 PM
Replies: 5
Views: 1,142
Posted By Gh0sT_
Re: Which 1?

OK. Now other question.

stock date(timestamp)
{
new year = 1970, day = 0, month = 0, hour = 0, mins = 0, sec = 0;
new days_of_month[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30,...
Forum: Includes 07/09/2011, 03:58 PM
Replies: 55
Views: 21,036
Posted By Gh0sT_
Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro)

Its like.. there's already ~10 house systems
there's already ~5 vehicle spawners
there's already ~20 admin systems.

and for the fs:

don't use char arrays for player, since max_player by...
Forum: Scripting Help 07/09/2011, 03:56 PM
Replies: 5
Views: 1,142
Posted By Gh0sT_
Re: Which 1?

Dont spam? ****** said the same, and Im going to do that.
Forum: Scripting Help 07/09/2011, 03:05 PM
Replies: 5
Views: 1,142
Posted By Gh0sT_
Which 1?

Hello all, I have small question.

Which one "method" is better? And, how much?

1st:

new PlayerIP[MAX_PLAYERS][16], PlayerName[MAX_PLAYERS][24];

public OnPlayerConnect(playerid)
{
Forum: Includes 06/09/2011, 03:48 PM
Replies: 22
Views: 11,602
Posted By Gh0sT_
Re: gDialog - Easyer way of managing dialogs!

So, which one is faster? Yours or Gamer_Z?
Forum: Includes 06/09/2011, 12:59 PM
Replies: 22
Views: 11,602
Posted By Gh0sT_
Re: gDialog - Easyer way of managing dialogs!

So.. Im using Gamer_Z release, which has same defines at all..

/*
* Fast Dialog Processing System
*
* Version 1.1
*
* By Gamer_Z
*
* for SSI (SA-MP Server Includes)
Forum: Scripting Help 05/09/2011, 03:41 PM
Replies: 3
Views: 1,304
Posted By Gh0sT_
Re: some questions

My example is not "full", lol:

new name[24];
if(sscanf(something, "s[24]", name)) return <...>
if(GetPlayerIDFromName(name) == INVALID_PLAYER_ID)
{
// mysql query
}
else
{
Forum: Includes 05/09/2011, 03:24 PM
Replies: 22
Views: 11,602
Posted By Gh0sT_
Re: gDialog - Easyer way of managing dialogs!

Im using first version of this script, its outdated? o,o
Forum: Scripting Help 05/09/2011, 03:17 PM
Replies: 3
Views: 1,304
Posted By Gh0sT_
Re: some questions

You mean...

new name[24], id;
sscanf(name, "u", id);
if (id != INVALID_PLAYER_ID)
{
Job[id] = 0;
blablabla
}
else
Forum: Scripting Help 05/09/2011, 02:49 PM
Replies: 3
Views: 1,304
Posted By Gh0sT_
Re: some questions

For param, no, it wont work as I want. For example, how I use this function:

if(GetPlayerIDFromName(name) != INVALID_PLAYER_ID)
{
Job[GetPlayerIDFromName(name)] = 0;
blablabla
}
else...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 08:45 PM.


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