Does not start the server
Good day.
There is a plugin: Code:
#include <amxmodx>P.S. Plugins writing about 2 weeks P.S.S. Sorry for my English, Google translate TY |
Re: Does not start the server
You have an array of size 33 to store credits , but you only have a 1x34 dimension with which to store the steam id of a player. Did you intend on making this a 2D array, such as "new s_AuthID[MAX_PLAYERS][35];" ?
The server will fail to start if the vault is corrupted. If you actually look at the documentation for nVault, you'd see that nvault_set takes a string, not an int. Use the appropriate conversion function before putting data into the vault. |
Re: Does not start the server
Thank you
Tell me how to get the variable credits [id] by HUD for each player, respectively, as well as the change of the hud messages according to the change of variable credits [id], that is, the number of credits. The message should hang time. |
Re: Does not start the server
I won't write all of the code for you, but there's a trick you can do with set_task. If you look at the documentation for set_task, you'll notice you can set an ID for the task.
A common practice to execute tasks repeatedly per-player is to do something like.. Code:
*Edit WYSYG editing sucks. |
Re: Does not start the server
Quote:
|
Re: Does not start the server
Code:
#include <amxmodx>Please indicate errors. TY |
Re: Does not start the server
In your loop_credits you find the player's id fine but don't do the show_hudmessage correctly.
In other player_killed event you incorrectly initialize a string variable; you can only declare an array without a dimension length if you plan on initializing the variable when you instantiate it. Otherwise you need do something like new string[7]. |
Re: Does not start the server
With a length of the array is clear, and that's how the HUD can not understand.
|
| All times are GMT -4. The time now is 12:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.