Search Results
pawn Код:
CMD:wfdebt(playerid, params[]){Â Â new string[ 512 ];Â Â new cnt = 0;Â Â new name[ MAX_PLAYER_NAME + 1 ]; Â Â foreach(new i: Player) {Â Â Â Â if(GetPlayerMoney(i) < 0) {Â ...
323
Quote:
Originally Posted by Konstantinos
This is incorrect:
pawn Код:
for(new x = 18; x != 0; x--)
The size of the array is 18 and that makes 0-17 as valid indexes. Your loops goes (ba...
377
Change the loop to this:
pawn Код:
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...
377
Quote:
Originally Posted by TheHonnor
I was thinking to place that check when the house valability has been reached / exceeded when the player disconnects. 'Cuz some friends of mine told m...
446
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 ...
446
mid 2008. Came to forums in mid 2009
30,699
Check your GetPlayerName function
356
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.
SetPlayerWorldBounds(p...
261
Did you use this?
https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds
What happens. What did you try to do?
261
http://forum.sa-mp.com/forumdisplay.php?f=33
580
He means:
pawn Код:
new pHoldingKeyFire[ MAX_PLAYERS ];public OnPlayerKeyState...{Â Â if(PRESSED(KEY_FIRE))Â Â Â Â pHoldingKeyFire[playerid] = 1;Â Â if(RELEASED(KEY_FIRE))Â Â Â Â pHold...
303
Print the query before it's performed, and print it after mysql_fetch_row_format, and paste the results here
282
Quote:
Originally Posted by Misiur
Have you checked if it is executing on GMX? Normal ctrl+c doesn't execute OGME at all.
Every time I'm updating something in my gamemode I'm using gmx....
429
Quote:
Originally Posted by Misiur
I'm not aware of it not working, are you using YSI 3 or 4?
I've used YSI 3.1, and now 4.0. It didn't make any difference.
429
Quote:
Originally Posted by Misiur
It's easy. Don't use OnMyCustomCallbackGetsCalled();, do
pawn Код:
CallLocalFunction("OnMyCustomCallbackGetsCalled", "");
Aha. Beautiful. It's wo...
429
Bump.
I also figured hooking some native callbacks doesn't work, such as OnTrailerUpdate, and OnGameModeExit
429
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:
pawn КоÐ...
429