Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 861 online users. » 0 Member(s) | 858 Guest(s) Yandex, Bing, Google
|
Latest Threads |
Adding new vehicles and s...
Forum: Programming
Last Post: __.A.__
Yesterday, 07:47 PM
» Replies: 0
» Views: 42
|
Zona América del Sur Free...
Forum: Advertisements
Last Post: kevinberriosflores
Yesterday, 02:16 PM
» Replies: 1
» Views: 68
|
Busco copia de gamemode S...
Forum: Spanish/Espa?ol
Last Post: briancristaldo2021
2025-09-11, 11:14 AM
» Replies: 0
» Views: 56
|
[Tutorial] Registrando o ...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-09-09, 08:36 PM
» Replies: 0
» Views: 197
|
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-09-08, 10:09 PM
» Replies: 1
» Views: 285
|
Problem with plugins load...
Forum: Support
Last Post: MrKacu13
2025-09-08, 07:15 PM
» Replies: 9
» Views: 334
|
Compilation error
Forum: Pawn Scripting
Last Post: MrKacu13
2025-09-07, 07:18 AM
» Replies: 6
» Views: 335
|
Need help, problem when i...
Forum: Programming
Last Post: nonickowned
2025-09-06, 06:21 PM
» Replies: 0
» Views: 140
|
Transfer server from SAMP...
Forum: Support
Last Post: MrKacu13
2025-09-06, 04:03 PM
» Replies: 1
» Views: 232
|
Not relevant anymore
Forum: Questions and Suggestions
Last Post: peti
2025-09-05, 02:00 PM
» Replies: 0
» Views: 192
|
|
|
Better way of doing this ? |
Posted by: mouiz - 2019-07-07, 06:38 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Is there a better way of getting the size of an enum ?
Code: enum modes
{
? ??MODE_fgrs,
? ? MODE_gdsrg,
? ? MODE_lol,
? ? MODE_third
};
new Modes [modes];
new size = sizeof (Modes);
|
|
|
How to solve this !? (Difficulty: Expert) |
Posted by: mouiz - 2019-07-07, 06:05 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
I want to clear all the elements of an enumerator in an automatic manner using a stock so i won't need to update this stock everytime i add a new variable/element to the enum. But there is a problem, it works only if there are integer variables in the enum.?How can i make it work which?arrays and integers both :
Code: enum player_data
{
? ? password [26],
? ? player_mode,
? ? spawned,
? ? kills,
? ? deaths
};
stock ClearPlayerData (playerid)
{
? ??for (new i = 0; i < sizeof (PlayerInfo []); i)
? ? {
? ? ? ? PlayerInfo [playerid][player_data : i] = 0;
? ? }
? ? return 1;
}
|
|
|
Server Crashing |
Posted by: Logan - 2019-07-07, 09:56 AM - Forum: Pawn Scripting
- Replies (2)
|
 |
Greetings all, the problem has emerged on one of my RolePlay servers. One of the developers was sloppy, hasn't following server_log up to date as he had to do, and the whole shitpile culminated with random server crashes/restarts with this repeating piece of information before the crash itself:
Code: [18:29:15] [debug] Server crashed while executing coarp.amx
[18:29:15] [debug] AMX backtrace:
[18:29:15] [debug] #0 00000075 in ?? (... <29 arguments>) at <unknown file>:0
[18:29:15] [debug] #1 00000075 in public OnPlayerCommandText () at <unknown file>:0
Any ideas what could it be? Could it be memory leak, or what?
|
|
|
|