SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: [XST]O_x
Forum: Everything and Nothing 09/12/2016, 06:10 PM
Replies: 28
Views: 2,897
Posted By [XST]O_x
Re: Identity RPG - 2017 - RP on a much larger scale.

Looks like one of those games that looks too good to be true and people get hyped about and they always get cancelled. Nothing to be excited about really, unless an actual serious announcement comes...
Forum: Scripting Help 25/08/2016, 03:03 PM
Replies: 6
Views: 376
Posted By [XST]O_x
Re: CMD:wfdebt help

CMD:wfdebt(playerid, params[])
{
new string[ 512 ];
new cnt = 0;
new name[ MAX_PLAYER_NAME + 1 ];
foreach(new i: Player) {
if(GetPlayerMoney(i) < 0) {
...
Forum: Scripting Help 01/08/2016, 03:09 PM
Replies: 8
Views: 683
Posted By [XST]O_x
Forum: Scripting Help 01/08/2016, 03:06 PM
Replies: 8
Views: 683
Posted By [XST]O_x
Re: error 052: multi-dimensional arrays must be fully initialized

Change the loop to this:

for(new x = sizeof(RankInfo)-1; x >= 0; x--)


The error is caused because you have 18 elements, indexed at 0 to 17, and you're accessing index 18 which is the 19th...
Forum: Scripting Help 30/07/2016, 12:31 AM
Replies: 9
Views: 570
Posted By [XST]O_x
Re: Mselection problem

#define mS_CUSTOM_MAX_ITEMS 683
Forum: Scripting Help 29/07/2016, 03:08 PM
Replies: 12
Views: 615
Posted By [XST]O_x
Re: Problem - Days System

A timer with 1 hour interval shouldn't cause any lag.
Forum: Scripting Help 28/07/2016, 02:40 PM
Replies: 12
Views: 615
Posted By [XST]O_x
Re: Problem - Days System

Have a variable to store the time in which the lease will expire
House[houseid][ExpirationDate] = gettime() + 60 * 60 * 24 * 30 //The current timestamp with addition of 30 days, converted to seconds...
Forum: General 28/06/2016, 05:47 PM
Replies: 699
Views: 62,947
Posted By [XST]O_x
Re: How many years are you around samp?

mid 2008. Came to forums in mid 2009
Forum: Scripting Help 22/06/2016, 05:13 AM
Replies: 8
Views: 399
Posted By [XST]O_x
Re: Warning.. help me in this please

Check your GetPlayerName function
Forum: Scripting Help 28/04/2016, 09:33 PM
Replies: 18
Views: 941
Posted By [XST]O_x
Re: Input line too long (after substitutions)

Please read my comment again.
Forum: Scripting Help 28/04/2016, 09:11 PM
Replies: 4,132
Views: 609,249
Posted By [XST]O_x
Re: Little coding questions - For general minor queries 5

A question I never got a chance to ask - How do you check if a player is paused?
I don't get what "OnPlayerUpdate returns 0" means. How do I check what the callback returns?
Forum: Scripting Help 28/04/2016, 08:49 PM
Replies: 18
Views: 941
Posted By [XST]O_x
Re: Input line too long (after substitutions)

You need to add a backslash ('\') at the end of each line while breaking down strings.

CMD:factions(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid,...
Forum: Scripting Help 20/04/2016, 04:26 PM
Replies: 4
Views: 638
Posted By [XST]O_x
Re: Setting World Boundaries

Read the syntax.
SetPlayerWorldBounds(playerid,Float: x_max,Float: x_min,Float: y_max,Float: y_min);

The left values are the maximal values, and the right ones are the minimum....
Forum: Scripting Help 20/04/2016, 04:12 PM
Replies: 4
Views: 638
Posted By [XST]O_x
Re: Setting World Boundaries

Did you use this?
https://wiki.sa-mp.com/wiki/SetPlayerWorldBounds
What happens. What did you try to do?
Forum: Scripting Help 11/03/2016, 07:11 PM
Replies: 27
Views: 881
Posted By [XST]O_x
Re: OnPlayerText help!!

http://forum.sa-mp.com/forumdisplay.php?f=33
Forum: Scripting Help 09/03/2016, 08:13 PM
Replies: 3
Views: 263
Posted By [XST]O_x
Re: for function

http://wiki.sa-mp.com/wiki/Loops
Forum: General 07/03/2016, 09:37 AM
Replies: 92
Views: 6,456
Posted By [XST]O_x
Re: How old were you when you started playing samp?

Started playing somewhere in 2007-2008 when I was 12-13. Now I'm 20.
Forum: Scripting Help 06/03/2016, 09:10 PM
Replies: 4
Views: 630
Posted By [XST]O_x
Re: HOLDING Key_Fire doesnt work

He means:

new pHoldingKeyFire[ MAX_PLAYERS ];

public OnPlayerKeyState...
{
if(PRESSED(KEY_FIRE))
pHoldingKeyFire[playerid] = 1;
if(RELEASED(KEY_FIRE))
...
Forum: Scripting Help 06/03/2016, 09:07 PM
Replies: 4
Views: 320
Posted By [XST]O_x
Re: Load Transaction from database to dialog

Print the query before it's performed, and print it after mysql_fetch_row_format, and paste the results here
Forum: Scripting Help 04/03/2016, 05:34 AM
Replies: 9
Views: 880
Posted By [XST]O_x
Re: Hooking custom callbacks using y_hooks

Every time I'm updating something in my gamemode I'm using gmx. That's the only way I'm resetting the server, and I know it doesn't get called because nothing gets saved to the database. I'll try...
Forum: Scripting Help 03/03/2016, 05:27 PM
Replies: 9
Views: 880
Posted By [XST]O_x
Re: Hooking custom callbacks using y_hooks

I've used YSI 3.1, and now 4.0. It didn't make any difference.
Forum: Scripting Help 03/03/2016, 04:35 PM
Replies: 9
Views: 880
Posted By [XST]O_x
Re: Hooking custom callbacks using y_hooks

Aha. Beautiful. It's working now, thanks :)
But what about OnGameModeExit?
Forum: Scripting Help 03/03/2016, 03:39 PM
Replies: 9
Views: 880
Posted By [XST]O_x
Re: Hooking custom callbacks using y_hooks

Bump.
I also figured hooking some native callbacks doesn't work, such as OnTrailerUpdate, and OnGameModeExit
Forum: Scripting Help 02/03/2016, 08:26 PM
Replies: 9
Views: 880
Posted By [XST]O_x
Forum: Scripting Help 02/03/2016, 01:16 PM
Replies: 9
Views: 880
Posted By [XST]O_x
Hooking custom callbacks using y_hooks

Is it possible to hook my own callbacks (not default SA:MP ones) using y_hooks?
Because right now the hooked callback doesn't get called at all, but the original one does.

What I mean is:

//On...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 09:13 PM.


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