Raised This Month: $128 Target: $400
 32% 

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Black Rose
Forum: Scripting Help 02-22-2021, 12:24
Replies: 6
Views: 291
Posted By Black Rose
Re: help me with this respawn plugin

read_data() is not a function which is to be used with Ham_* forwards, only for messages hooked using register_event() (perhaps others, not entierly sure).

public fwd_HamKilled(id, Victim,...
Forum: Scripting Help 02-13-2021, 16:07
Replies: 2
Views: 148
Posted By Black Rose
Re: Server crashes Run time error 4: index out of bounds

Most likely missing a connected check or valid player range check on attacker. Probably the map that has the issues also has a way to suicide while the other might not.

Another possibility if your...
Forum: Scripting Help 02-13-2021, 15:43
Replies: 6
Views: 291
Posted By Black Rose
Re: help me with this respawn plugin

This is what I use on my server.
Doesn't detect spectator change, you'll have to add that separately.

#include <amxmodx>
#include <hamsandwich>

public plugin_init()
{...
Forum: Scripting Help 02-12-2021, 15:14
Replies: 12
Views: 311
Posted By Black Rose
Re: Need help with optimization

It all depends on how often it is called.

In your case I'd say your code is fine. but !x_arg[0] or strlen(x_arg) is a good compliment.


*cough* +1
Forum: Scripting Help 02-12-2021, 03:09
Replies: 3
Views: 137
Posted By Black Rose
Re: Compiling error

Just to be clear.

condition1 ? (yes1)condition2 ? yes2 : no2 : no1 //good
condition1 ? yes1 : (no1)condition2 ? yes2 : no2 //good
Forum: Scripting Help 02-01-2021, 12:23
Replies: 16
Solved if problem
Views: 507
Posted By Black Rose
Re: if problem

Any of these are correct:

if ( Restarted < 2 )
{
Restarted++; // Increased AFTER comparison
}


if ( ++Restarted <= 2 ) // Increased BEFORE comparison
{
Forum: Scripting Help 01-25-2021, 14:04
Replies: 6
Solved sql in amx ?
Views: 463
Posted By Black Rose
Re: sql in amx ?

You're gonna kick yourself.


@@ if(SQL_Connection != Empty_Handle) client_print(0,print_chat,"%s",error)
else sql_select(id)

->

@@ if(SQL_Connection == Empty_Handle)...
Forum: Scripting Help 01-24-2021, 16:28
Replies: 5
Views: 337
Posted By Black Rose
Re: How to learn amxx scripting?

Similar or not doesn't really matter. You will always have easier to learn if you know another programming language because you understand a lot of the basics already and can see patterns by looking...
Forum: Scripting Help 01-23-2021, 11:05
Replies: 8
Views: 390
Posted By Black Rose
Re: hook player id

So yeah. So you have a couple of options.

If we take this code here:

if ( cs_get_user_team(id) == CS_TEAM_T ){
switch(checkT[id]){
case 1:{
cs_set_user_model(id, "isis")...
Forum: Off-Topic 01-23-2021, 09:35
Replies: 5
Views: 1,039
Posted By Black Rose
Re: forum bbcode suggestions

No problem. I love doing stuff with JavaScript.

I had a tug of war with the automatic forum security over onclick event in the code which I eventually won.
Now also contains copy button.
Forum: Scripting Help 01-23-2021, 06:40
Replies: 8
Views: 390
Posted By Black Rose
Re: hook player id

In a not so far distant future.
One (wo)man on a quest for answers.
Little did (s)he know how it all would end...



Suddenly, a helpful character emerges from the darkness...

Helpful...
Forum: Off-Topic 01-22-2021, 21:01
Replies: 5
Views: 1,039
Posted By Black Rose
Re: forum bbcode suggestions

https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija (or something similar)

Nothing fancy.
It doesn't add line numbers to edits or new posts, only...
Forum: Scripting Help 01-22-2021, 17:28
Replies: 18
Views: 909
Posted By Black Rose
Re: socket_* returns Bad Request

The missing slash was the reason for 400. HTTP servers are picky bastards.
https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Client_request

The example code gives me "301 Moved...
Forum: Scripting Help 01-21-2021, 12:00
Replies: 18
Views: 909
Posted By Black Rose
Re: socket_* returns Bad Request

bans/%s
->
/bans/%s
Forum: Scripting Help 01-11-2021, 13:18
Replies: 10
Views: 713
Posted By Black Rose
Re: Round Restart Error Forcing Players to Select Team

I think there's an obvious mistake somewhere. Because cvars are so simple that they can't go wrong.

I'm just guessing here but I'm assuming you're trying to edit the cvars inside the source code...
Forum: Scripting Help 01-08-2021, 17:59
Replies: 10
Views: 713
Posted By Black Rose
Forum: Scripting Help 01-06-2021, 09:21
Replies: 1
Views: 135
Posted By Black Rose
Re: Help?

In the future, please explain what you expect your code to do. Otherwise it might be hard for others to understand what is wrong, especially when it's not in english.


public money(id)
{
...
Forum: Scripting Help 01-06-2021, 09:14
Replies: 2
Views: 169
Posted By Black Rose
Re: Run time error 3: stack error

static gTopSort[ 9999 ][ 2 ];


Since everything is regulated by iStatsTotal you shouldn't have to clean it each cycle (static is more or less a global variable and retains it's value when...
Forum: Scripting Help 01-06-2021, 09:05
Replies: 10
Views: 713
Posted By Black Rose
Re: Round Restart Error Forcing Players to Select Team

I don't see the problem within the plugin, if autorr_enable is set to 0 it won't do anything. Double-check your cvars.
Forum: Scripting Help 12-13-2020, 10:19
Replies: 11
Views: 609
Posted By Black Rose
Re: nvault set problem

I'm feeling someone is biased.


Rules are rules, and in this case it is based on US laws. Worst case scenario the forum is taken down, forever. This is nothing you're entitled an opinion on.
Forum: Scripting Help 12-12-2020, 08:07
Replies: 1
Views: 260
Posted By Black Rose
Re: get_players_ex

#include <amxmisc>
Forum: Scripting Help 12-05-2020, 17:00
Replies: 11
Views: 714
Posted By Black Rose
Re: Pawn to C++ translation for Unreal Engine $$$

What is the end goal?
What is your role in this?
Forum: Scripting Help 11-22-2020, 13:20
Replies: 10
Views: 729
Posted By Black Rose
Re: Am I Correct ?

The taskid looks fine. However, unneccessary if you don't have any other tasks, especially if you're not cancelling any. Then you can always straight up use the player id, just make sure the player...
Forum: Scripting Help 11-22-2020, 12:52
Replies: 5
Views: 551
Posted By Black Rose
Re: Save for certain steams

new const saveSteam[][]=
{
{"STEAM ONE"},
{"STEAM TWO"}
}

You actually have to put steam id's in there.
Forum: Module Coding 11-15-2020, 08:58
Replies: 3
Views: 1,396
Posted By Black Rose
Re: AMXX httplib module

Are you saying you want the to host a HTTP-server using AMXX? If so, I believe that already exists. But it depends on how advanced you want it to be.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 03:06.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode