Coder Social home page Coder Social logo

oscar-broman / pawn-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 13.0 12.48 MB

(discontinued) Solid core for a big SA-MP server script.

Home Page: http://sa-mp.com/

Shell 0.01% PHP 16.29% Batchfile 0.21% Pawn 24.57% SourcePawn 46.77% C++ 12.15%

pawn-boilerplate's People

Contributors

jameskmonger avatar jessyy avatar medzvel avatar oscar-broman avatar shadowawe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pawn-boilerplate's Issues

Command_Add errors, no commands functioning

On a fresh clone, I get some errors when running the server. Also, no commands (/help, /commands, etc) work, I just get the "SERVER: Unknown Command" message.)

Here are the errors in question:

[22:41:48] [debug] Run time error 4: "Array index out of bounds"
[22:41:48] [debug]  Accessing element at index 32 past array upper bound 31
[22:41:48] [debug] AMX backtrace:
[22:41:48] [debug] #0 0002b26c in bool:Command_Add (... <3 variable arguments>) at include/YSI/internal/y_grouponce.inc:834
[22:41:48] [debug] #1 0002af14 in bool:Command_Add (... <3 variable arguments>) at include/YSI/internal/y_grouponce.inc:778
[22:41:48] [debug] #2 0002ae10 in bool:Command_Add (... <4 variable arguments>) at include/YSI/internal/y_grouponce.inc:771
[22:41:48] [debug] #3 native CallRemoteFunction () [00471ae0] from samp-server.exe
[22:41:48] [debug] #4 0002ad48 in bool:Command_Add (... <3 variable arguments>) at include/YSI/internal/y_grouponce.inc:771
[22:41:48] [debug] #5 0002a110 in bool:Command_Add (... <1 variable argument>) at include/YSI/internal/y_grouponce.inc:600
[22:41:48] [debug] #6 00014f18 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:612
[22:41:48] [debug] #7 native CallLocalFunction () [00471e90] from samp-server.exe
[22:41:48] [debug] #8 0000becc in Command_Add (... <1 variable argument>) at include/fixes.inc:1672
[22:41:48] [debug] #9 native CallLocalFunction () [00471e90] from samp-server.exe
[22:41:48] [debug] #10 00002384 in Command_Add (... <1 variable argument>) at include/sscanf2.inc:113
[22:42:03] [debug] Run time error 4: "Array index out of bounds"
[22:42:03] [debug]  Accessing element at index 32 past array upper bound 31
[22:42:03] [debug] AMX backtrace:
[22:42:03] [debug] #0 00029f80 in bool:Command_Add (... <2 variable arguments>) at include/YSI/internal/y_grouponce.inc:561
[22:42:03] [debug] #1 0001507c in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:655
[22:42:03] [debug] #2 native CallLocalFunction () [00471e90] from samp-server.exe
[22:42:03] [debug] #3 0000bfa0 in Command_Add (... <2 variable arguments>) at include/fixes.inc:1705
[22:42:03] [debug] #4 native CallLocalFunction () [00471e90] from samp-server.exe
[22:42:03] [debug] #5 0000240c in Command_Add (... <2 variable arguments>) at include/sscanf2.inc:142

sscanf Error

I was writing a spawn weapon command I get an error on the sscanf line.

if(sscanf(params, "pk<weapon>i(-1)", target, weapon, ammo)) {

The command does not work (I get the Usage: message, which occurs if the player does not use the command correctly, and this is determined by the line above).

In the console, I get this printed:

[11:36:15] sscanf warning: Unknown format specifier '<', skipping.
[11:36:15] sscanf warning: Unknown format specifier 'w', skipping.
[11:36:22] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<k>.

Error when creating callback

PBP Warning: Unknown callback "OnAccountDataLoaded"

but i had do this inside callbacks.inc

forward OnAccountDataLoaded(playerid, g_mysql_check);

Linux compiler - php not found

I'm using Ubuntu 10.12, and I run against this issue when I try to execute the compiler.

./compile: 3: ./compile: php: not found

I do have execute permissions to all files.

Project Status

That's the best I've ever seen for samp, except for the library from YSI Y_Less.

Why did you stop the development?
Have you lost interest?
Or perhaps not enough support?

Make arrays of strings translateable without added effort

Like this:
new arraysOfStrings[][] =
{
@"Example 1", @"Example 2", @"Example 3", @"Example 4"
};

At the current state this crashes the compiler... I know this is possible to do like you did with CommandDescription but that's added effort :)

Admin levels not saving

When SetPlayerAdminLevel is used to set the player's admin level, if they log out and log back in, their admin level is not kept.

SendClientMessageToAllExcept

/*
 * SendClientToAllExcept
 * ---------------------------------------------- */
stock this.SendClientMessageToAllExcept(playerid, color, message[], va_args<>) {
    this.CheckStringArgument(2, playerid);

    if (numargs() > 3) {
        va_formatex(this.TextBuffer, _, message, va_start<3>);

        foreach(new p : Player) {
            if(p != playerid) SendClientMessage(p, color, this.TextBuffer);
        }
        return 1;
    } else {
        foreach(new p : Player) {
            if(p != playerid) SendClientMessage(p, color, message);
        }
        return 1;
    }
}
#define SendClientMessageToAllExcept Text.SendClientMessageToAllExcept

I put the function in PBP.Text.functions but I'm not sure how to properly submit it so I just posted it here

Almost duplicate language entries

For example, this code will generate two entries in *.lang.inc files.

CommandDescription<config> = @"Show the config editor.";

YCMD(GROUP_RCON, GROUP_MANAGEMENT):config(playerid, params[], help) {
    if (help) {
        SendClientMessage(playerid, COLOR_COMMAND_HELP, @"* Show the config editor.");

        // etc..

Entries:

"* Show the config editor." = "* Show the config editor."
"Show the config editor." = "Show the config editor."

Perhaps a more clever method of string pooling could work around this, though it would only work if only the beginning differs.

compiler.lock file trouble

I suggest to remove it. It brings alot of issues.

  1. It isn't visible in Windows. The file can only be deleted by using the command prompt.
  2. It very often gives you an error that the file still exists, but it doesn't.

It's rather annoying to run into this bug all the time.

Three minor issues

  1. An empty config.cfg should be automatically created in /scriptfiles/ so server does not complain on first run.
  2. Add Whirlpool plugin to server.cfg.
  3. If one adds new uninitialized(i.e. empty) language file, the server should notice him(otherwise you get a bunch of errors about it not being initialized)

GetPublicAddressFromName & GetPubVarAddressFromName

gamemodes/modules/PBP/Config/callbacks/OnGameModeInit.inc(10) : error 017: undefined symbol "GetPublicAddressFromName"
gamemodes/modules/PBP/Commands/callbacks/OnGameModeInit.inc(44) : error 017: undefined symbol "GetPubVarAddressFromName"

Prefixed public functions

Functions such as this.MyTimerFunction will be enlisted in the publics table as something like M3@MyTimerFunction, which would cause timers using plain string literals to fail (though ones using stringize would work).

One possible way to solve this could be to add entries to the publics table, with resolved module names.

Odd compilation errors when adding new callback

I only have one module at the moment, and all the includes are empty (well, I haven't edited them) except for callbacks.inc, where I have forwarded OnGameModeInit. My OnGameModeInit callback in /callbacks/ simply adds the classes, and that compiles fine, yet if I add ANY other callback into /callbacks/ I get an error. I've tried it with OnPlayerConnect, OnPlayerDisconnect, OnPlayerRequestClass, and I get this error when I try to compile after adding any other callback:
main.pwn(196) : error 017: undefined symbol "Text"
main.pwn(196) : error 029: invalid expression, assumed zero
main.pwn(196) : error 017: undefined symbol "SetActivePlayer"
main.pwn(196) : fatal error 107: too many error messages on one line

Failed to compile (1).

I get the error whether there's any code inside the file or not, and I also get the error whether I forward the callback in callbacks.inc or not

Problem when compiling for first time.

I am new to this boilerplate, And I am willing to use it.
However, When I am running the compile bat file to get the SAMP exe's, It says:
__
The system cannot find the path specified.
__

And here is the result after removing @echo off, for more info.
__
C:\Documents and Settings\Admin\Desktop\dfd\PAWN-Boilerplate\compiler>for /F %i
in (""C:\Documents and Settings\Admin\Desktop\dfd\PAWN-Boilerplate\compiler\comp
ile.bat"") do set BASE_PATH=%~dpi

C:\Documents and Settings\Admin\Desktop\dfd\PAWN-Boilerplate\compiler>set BASE_P
ATH=C:\

C:\Documents and Settings\Admin\Desktop\dfd\PAWN-Boilerplate\compiler>set WORKIN
G_PATH=C:\Documents and Settings\Admin\Desktop\dfd\PAWN-Boilerplate\compiler

C:\Documents and Settings\Admin\Desktop\dfd\PAWN-Boilerplate\compiler>pushd C:
..

C:>compiler\bin\php.exe -n -d extension="./php-ext/php_openssl.dll" -d extensio
n="./php-ext/php_mbstring.dll" -f "C:\pre-compiler\compile.php" -- "C:\Document
s and Settings\Admin\Desktop\dfd\PAWN-Boilerplate\compiler" "C:"
The system cannot find the path specified.

C:>echo.

C:>popd

C:\Documents and Settings\Admin\Desktop\dfd\PAWN-Boilerplate\compiler>pause
__

amx_assembly

Slice quote:"amx_assembly removed shorter versions. Replace r@ with ReadAmxMemory and w@ with WriteAmxMemory."

Class' group checking in if-statement not working

I am trying to, on spawn, check if the player's class' group if equal to a certain group, in an if-statement. However, it doesn't work.
Here are the group declarations in header.inc:
new Group:this.GROUP_CIVILIAN;
new Group:this.GROUP_POLICE;
new Group:this.GROUP_MEDIC;

Here are the classes' creation lines in OnGameModeInit.inc:
CreateClass(temp_SkinID, civilian_spawn, civilian_weapons, 0, GROUP_CIVILIAN);
CreateClass(280, police_spawn, police_weapons_general, 0, GROUP_POLICE);
CreateClass(274, medic_spawn, medic_weapons, 0, GROUP_MEDIC);

As you can see, each class is given a different group. However, when I check this in OnPlayerRequestClass or OnPlayerSpawn, nothing happens. For example, when I go to the Medic class on the select class screen, the word "Civilian" is displayed. My code from OnPlayerRequestClass is below:
new class = ClassSelection.RequestedClass[playerid]; // Declare the class variable (makes the if-elseif-else statement below shorter)
new this.className[13]; // Declare the className variable that will be used below.
if(ClassSelection.Classes[class][Group] == GROUP_CIVILIAN) this.className = "wCivilians"; // If a civilian, set the className string to "wCivilians"
else if(ClassSelection.Classes[class][Group] == GROUP_POLICE) this.className = "bPolice"; // If a police officer, set the className string to "bPolice"
else if(ClassSelection.Classes[class][Group] == GROUP_MEDIC) this.className = "gMedics"; // If a medics, set the className string to "gMedics"
else this.className = " "; // If none of the above are true (something's wrong) then just set the class name to a space, effectively blank
GameTextForPlayer(playerid, this.className, 1000, 4); // Show a second-long gametext to the player, containing the name of their "team" (group)

Furthermore, when I spawn as either a policeman or a medic, my colour is still white (as the civilian class). The code from OnPlayerSpawn is below:
new class = ClassSelection.PlayerClass[playerid]; // Declare the class variable (makes the if-elseif-else statement below shorter)
if(ClassSelection.Classes[class][Group] == GROUP_CIVILIAN) SetPlayerColor(playerid, COLOUR_WHITE); // If a civilian, set player to the civilian colour (white)
else if(ClassSelection.Classes[class][Group] == GROUP_POLICE) SetPlayerColor(playerid, COLOUR_POLICEBLUE); // If a police officer, set player to the police colour (policeblue)
else if(ClassSelection.Classes[class][Group] == GROUP_MEDIC) SetPlayerColor(playerid, COLOUR_MEDICGREEN); // If a medic, set player to the medic colour (medicgreen)

Samp version

It downloads 0.3d-R2 (now outdated) version of the samp server.

Runtime errors

When running a directly cloned copy of PBP with the Demo module intact, I get the following errors:

[03:37:36] [debug] Run time error 4: "Array index out of bounds"
[03:37:36] [debug]  Accessing element at index 32 past array upper bound 31
[03:37:36] [debug] AMX backtrace:
[03:37:36] [debug] #0 0002b26c in bool:Command_Add (... <3 variable arguments>) at include/YSI/internal/y_grouponce.inc:834
[03:37:36] [debug] #1 0002af14 in bool:Command_Add (... <3 variable arguments>) at include/YSI/internal/y_grouponce.inc:778
[03:37:36] [debug] #2 0002ae10 in bool:Command_Add (... <4 variable arguments>) at include/YSI/internal/y_grouponce.inc:771
[03:37:36] [debug] #3 native CallRemoteFunction () [00471ae0] from samp-server.exe
[03:37:36] [debug] #4 0002ad48 in bool:Command_Add (... <3 variable arguments>) at include/YSI/internal/y_grouponce.inc:771
[03:37:36] [debug] #5 0002a110 in bool:Command_Add (... <1 variable argument>) at include/YSI/internal/y_grouponce.inc:600
[03:37:36] [debug] #6 00014f18 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:612
[03:37:36] [debug] #7 native CallLocalFunction () [00471e90] from samp-server.exe
[03:37:36] [debug] #8 0000becc in Command_Add (... <1 variable argument>) at include/fixes.inc:1672
[03:37:36] [debug] #9 native CallLocalFunction () [00471e90] from samp-server.exe
[03:37:36] [debug] #10 00002384 in Command_Add (... <1 variable argument>) at include/sscanf2.inc:113
[03:37:36] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:36] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:36] [debug] Run time error 4: "Array index out of bounds"
[03:37:36] [debug]  Accessing element at negative index -1
[03:37:36] [debug] AMX backtrace:
[03:37:36] [debug] #0 00056f1c in public S@@_OnPlayerRequestClass (playerid=0, classid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestClass.inc:85
[03:37:36] [debug] #1 00015a14 in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:957
[03:37:39] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:39] [debug] Run time error 4: "Array index out of bounds"
[03:37:39] [debug]  Accessing element at negative index -1
[03:37:39] [debug] AMX backtrace:
[03:37:39] [debug] #0 00056f1c in public S@@_OnPlayerRequestClass (playerid=0, classid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestClass.inc:85
[03:37:39] [debug] #1 00015a14 in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:957
[03:37:39] [debug] #2 native CallRemoteFunction () [00471ae0] from samp-server.exe
[03:37:39] [debug] #3 00057844 in public S@@_OnPlayerRequestSpawn (playerid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestSpawn.inc:11
[03:37:39] [debug] #4 00016678 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:1350
[03:37:39] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:39] [debug] Run time error 4: "Array index out of bounds"
[03:37:39] [debug]  Accessing element at negative index -1
[03:37:39] [debug] AMX backtrace:
[03:37:39] [debug] #0 00056f1c in public S@@_OnPlayerRequestClass (playerid=0, classid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestClass.inc:85
[03:37:39] [debug] #1 00015a14 in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:957
[03:37:39] [debug] #2 native CallRemoteFunction () [00471ae0] from samp-server.exe
[03:37:39] [debug] #3 00057844 in public S@@_OnPlayerRequestSpawn (playerid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestSpawn.inc:11
[03:37:39] [debug] #4 00016678 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:1350
[03:37:39] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:39] [debug] Run time error 4: "Array index out of bounds"
[03:37:39] [debug]  Accessing element at negative index -1
[03:37:39] [debug] AMX backtrace:
[03:37:39] [debug] #0 00056f1c in public S@@_OnPlayerRequestClass (playerid=0, classid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestClass.inc:85
[03:37:39] [debug] #1 00015a14 in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:957
[03:37:39] [debug] #2 native CallRemoteFunction () [00471ae0] from samp-server.exe
[03:37:39] [debug] #3 00057844 in public S@@_OnPlayerRequestSpawn (playerid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestSpawn.inc:11
[03:37:39] [debug] #4 00016678 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:1350
[03:37:39] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:39] [debug] Run time error 4: "Array index out of bounds"
[03:37:39] [debug]  Accessing element at negative index -1
[03:37:39] [debug] AMX backtrace:
[03:37:39] [debug] #0 00056f1c in public S@@_OnPlayerRequestClass (playerid=0, classid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestClass.inc:85
[03:37:39] [debug] #1 00015a14 in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:957
[03:37:39] [debug] #2 native CallRemoteFunction () [00471ae0] from samp-server.exe
[03:37:39] [debug] #3 00057844 in public S@@_OnPlayerRequestSpawn (playerid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestSpawn.inc:11
[03:37:39] [debug] #4 00016678 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:1350
[03:37:39] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:39] [debug] Run time error 4: "Array index out of bounds"
[03:37:39] [debug]  Accessing element at negative index -1
[03:37:39] [debug] AMX backtrace:
[03:37:39] [debug] #0 00056f1c in public S@@_OnPlayerRequestClass (playerid=0, classid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestClass.inc:85
[03:37:39] [debug] #1 00015a14 in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:957
[03:37:39] [debug] #2 native CallRemoteFunction () [00471ae0] from samp-server.exe
[03:37:39] [debug] #3 00057844 in public S@@_OnPlayerRequestSpawn (playerid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestSpawn.inc:11
[03:37:39] [debug] #4 00016678 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:1350
[03:37:39] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:39] [debug] Run time error 4: "Array index out of bounds"
[03:37:39] [debug]  Accessing element at negative index -1
[03:37:39] [debug] AMX backtrace:
[03:37:39] [debug] #0 00056f1c in public S@@_OnPlayerRequestClass (playerid=0, classid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestClass.inc:85
[03:37:39] [debug] #1 00015a14 in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:957
[03:37:39] [debug] #2 native CallRemoteFunction () [00471ae0] from samp-server.exe
[03:37:39] [debug] #3 00057844 in public S@@_OnPlayerRequestSpawn (playerid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestSpawn.inc:11
[03:37:39] [debug] #4 00016678 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:1350
[03:37:40] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:40] [debug] Run time error 4: "Array index out of bounds"
[03:37:40] [debug]  Accessing element at negative index -1
[03:37:40] [debug] AMX backtrace:
[03:37:40] [debug] #0 00056f1c in public S@@_OnPlayerRequestClass (playerid=0, classid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestClass.inc:85
[03:37:40] [debug] #1 00015a14 in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:957
[03:37:40] [debug] #2 native CallRemoteFunction () [00471ae0] from samp-server.exe
[03:37:40] [debug] #3 00057844 in public S@@_OnPlayerRequestSpawn (playerid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestSpawn.inc:11
[03:37:40] [debug] #4 00016678 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:1350
[03:37:40] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:40] [debug] Run time error 4: "Array index out of bounds"
[03:37:40] [debug]  Accessing element at negative index -1
[03:37:40] [debug] AMX backtrace:
[03:37:40] [debug] #0 00056f1c in public S@@_OnPlayerRequestClass (playerid=0, classid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestClass.inc:85
[03:37:40] [debug] #1 00015a14 in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:957
[03:37:40] [debug] #2 native CallRemoteFunction () [00471ae0] from samp-server.exe
[03:37:40] [debug] #3 00057844 in public S@@_OnPlayerRequestSpawn (playerid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestSpawn.inc:11
[03:37:40] [debug] #4 00016678 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:1350
[03:37:40] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:40] [debug] Run time error 4: "Array index out of bounds"
[03:37:40] [debug]  Accessing element at negative index -1
[03:37:40] [debug] AMX backtrace:
[03:37:40] [debug] #0 00056f1c in public S@@_OnPlayerRequestClass (playerid=0, classid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestClass.inc:85
[03:37:40] [debug] #1 00015a14 in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:957
[03:37:40] [debug] #2 native CallRemoteFunction () [00471ae0] from samp-server.exe
[03:37:40] [debug] #3 00057844 in public S@@_OnPlayerRequestSpawn (playerid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestSpawn.inc:11
[03:37:40] [debug] #4 00016678 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:1350
[03:37:40] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:40] [debug] Run time error 4: "Array index out of bounds"
[03:37:40] [debug]  Accessing element at negative index -1
[03:37:40] [debug] AMX backtrace:
[03:37:40] [debug] #0 00056f1c in public S@@_OnPlayerRequestClass (playerid=0, classid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestClass.inc:85
[03:37:40] [debug] #1 00015a14 in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:957
[03:37:40] [debug] #2 native CallRemoteFunction () [00471ae0] from samp-server.exe
[03:37:40] [debug] #3 00057844 in public S@@_OnPlayerRequestSpawn (playerid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestSpawn.inc:11
[03:37:40] [debug] #4 00016678 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:1350
[03:37:41] (ClassSelection.SetFirstAvailableClass) ERROR: No classes available for player 0.
[03:37:41] [debug] Run time error 4: "Array index out of bounds"
[03:37:41] [debug]  Accessing element at negative index -1
[03:37:41] [debug] AMX backtrace:
[03:37:41] [debug] #0 00056f1c in public S@@_OnPlayerRequestClass (playerid=0, classid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestClass.inc:85
[03:37:41] [debug] #1 00015a14 in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:957
[03:37:41] [debug] #2 native CallRemoteFunction () [00471ae0] from samp-server.exe
[03:37:41] [debug] #3 00057844 in public S@@_OnPlayerRequestSpawn (playerid=0) at .build/modules/PBP/ClassSelection/callbacks/OnPlayerRequestSpawn.inc:11
[03:37:41] [debug] #4 00016678 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:1350
[03:37:42] [debug] Run time error 4: "Array index out of bounds"
[03:37:42] [debug]  Accessing element at index 32 past array upper bound 31
[03:37:42] [debug] AMX backtrace:
[03:37:42] [debug] #0 00029f80 in bool:Command_Add (... <2 variable arguments>) at include/YSI/internal/y_grouponce.inc:561
[03:37:42] [debug] #1 0001507c in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:655
[03:37:42] [debug] #2 native CallLocalFunction () [00471e90] from samp-server.exe
[03:37:42] [debug] #3 0000bfa0 in Command_Add (... <2 variable arguments>) at include/fixes.inc:1705
[03:37:42] [debug] #4 native CallLocalFunction () [00471e90] from samp-server.exe
[03:37:42] [debug] #5 0000240c in Command_Add (... <2 variable arguments>) at include/sscanf2.inc:142

Runtime error 4 while player spawns.

[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 32 past array upper bound 31
[debug] AMX backtrace:
[debug] #0 0002b26c in bool:Command_Add (... <3 variable arguments>) at include/YSI/internal/y_grouponce.inc:834
[debug] #1 0002af14 in bool:Command_Add (... <3 variable arguments>) at include/YSI/internal/y_grouponce.inc:778
[debug] #2 0002ae10 in bool:Command_Add (... <4 variable arguments>) at include/YSI/internal/y_grouponce.inc:771
[debug] #3 native CallRemoteFunction () [00474000] from samp-server.exe
[debug] #4 0002ad48 in bool:Command_Add (... <3 variable arguments>) at include/YSI/internal/y_grouponce.inc:771
[debug] #5 0002a110 in bool:Command_Add (... <1 variable argument>) at include/YSI/internal/y_grouponce.inc:600
[debug] #6 00014f18 in Command_Add (... <1 variable argument>) at include/YSI/y_hooks/impl.inc:612
[debug] #7 native CallLocalFunction () [004743b0] from samp-server.exe
[debug] #8 0000becc in Command_Add (... <1 variable argument>) at include/fixes.inc:1672
[debug] #9 native CallLocalFunction () [004743b0] from samp-server.exe
[debug] #10 00002384 in Command_Add (... <1 variable argument>) at include/sscanf2.inc:113
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 32 past array upper bound 31
[debug] AMX backtrace:
[debug] #0 00029f80 in bool:Command_Add (... <2 variable arguments>) at include/YSI/internal/y_grouponce.inc:561
[debug] #1 0001507c in Command_Add (... <2 variable arguments>) at include/YSI/y_hooks/impl.inc:655
[debug] #2 native CallLocalFunction () [004743b0] from samp-server.exe
[debug] #3 0000bfa0 in Command_Add (... <2 variable arguments>) at include/fixes.inc:1705
[debug] #4 native CallLocalFunction () [004743b0] from samp-server.exe
[debug] #5 0000240c in Command_Add (... <2 variable arguments>) at include/sscanf2.inc:142

Classes not added until after language selection

Until you select a language, the class on the request class screen is CJ, even if you don't have a CJ-skinned class. When you select a language, the classes are added, but it would be nice to have it so that the classes were initialised before the player is told to pick a language so that you don't see a class you can't spawn into :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.