Raised This Month: $28 Target: $400
 7% 

Showing results 1 to 25 of 500
Search took 0.09 seconds.
Search: Posts Made By: fysiks
Forum: Suggestions / Requests Yesterday, 23:21
Replies: 9
Views: 207
Posted By fysiks
Re: Different messages controlled by if statemenets

Yeah, I forgot to add the creation of the anyCvarEnabled variable so you had to fix that part. Regarding your changes, I don't see a .sma anywhere that has the changes you made. The ZIP file has...
Forum: Scripting Help Yesterday, 23:10
Replies: 4
Views: 145
Posted By fysiks
Re: Invalid Player id

@Id0x., it looks like the value of id should be valid (assuming that the get_user_name and get_user_team worked successfully). The only thing that I can think of is something in the code for...
Forum: Scripting Help Yesterday, 23:04
Replies: 20
Views: 540
Posted By fysiks
Re: save nvault on plugin_end

Well, I think you need to verify that it's not just being caused by whatever you are referring to as "shutdown" because it's still not clear what that means. So, you would need to get people in the...
Forum: Suggestions / Requests Yesterday, 00:51
Replies: 9
Views: 207
Posted By fysiks
Re: Different messages controlled by if statemenets

The example that I've given is specifically for the area where you try to implement the logic that you explained in your original post (line 6433). For example the following is effectively replaced...
Forum: Suggestions / Requests Yesterday, 00:12
Replies: 9
Views: 207
Posted By fysiks
Re: Different messages controlled by if statemenets

Regarding your original, specific question, you can cache the cvar values and then do some preprocessing to determine which variant of the message you want to send. I've created an example here with...
Forum: Suggestions / Requests 08-01-2021, 23:48
Replies: 9
Views: 207
Posted By fysiks
Re: Different messages controlled by if statemenets

Note that it might be helpful to have the original code that you started with so that we can see exactly what changes you made. I noticed that someone created a version of this plugin (which appears...
Forum: Suggestions / Requests 08-01-2021, 22:31
Replies: 9
Views: 207
Posted By fysiks
Re: Different messages controlled by if statemenets

The code snippet that you posted doesn't seems to relate to your post (i.e. it doesn't have any reference to cvars) and it also doesn't appear to consistent with the attached plugin.

A suggestion...
Forum: Scripting Help 08-01-2021, 19:51
Replies: 20
Views: 540
Posted By fysiks
Forum: Scripting Help 08-01-2021, 15:34
Replies: 20
Views: 540
Posted By fysiks
Re: save nvault on plugin_end

plugin_end(), client_disconnect(), and client_disconnected() are all called when the server is shut down properly (i.e. using the "quit" or "exit" commands in console. If the process is killed at...
Forum: Scripting Help 08-01-2021, 07:06
Replies: 12
Views: 205
Posted By fysiks
Re: get_user_authid bug?

I'll not reply to this now since it would be a bit off topic. Best to this in another thread if you want more advice about it.





Then you are doing something wrong. Please post your code. ...
Forum: Scripting Help 08-01-2021, 06:53
Replies: 12
Views: 205
Posted By fysiks
Re: get_user_authid bug?

See my post above just before you posted this.




No, that is not how you would do it. For a beginner, I would recommend just creating an array for each piece of data that you're trying to...
Forum: Scripting Help 08-01-2021, 06:48
Replies: 20
Views: 540
Posted By fysiks
Re: save nvault on plugin_end

What does it mean when you say "the server get shut down"?
Forum: Scripting Help 08-01-2021, 06:47
Replies: 12
Views: 205
Posted By fysiks
Re: get_user_authid bug?

In addition to Natsheh's post, you need to change sizeof(g_szAuthID) to charsmax(g_szAuthID[]).

You might consider reading some basic scripting tutorials to get a better idea how strings and other...
Forum: General 07-31-2021, 19:46
Replies: 12
Views: 1,532
Posted By fysiks
Re: Amxx 1.9+ Opposing Force map vote bug

One Eyed Jacks and I did some interactive debugging and ultimately found that the because Opposing Forces doesn't have an mp_chattime cvar, it was using a default value of 10 seconds which was...
Forum: General 07-30-2021, 19:24
Replies: 12
Views: 1,532
Posted By fysiks
Re: Amxx 1.9+ Opposing Force map vote bug

So, it looks like Opposing Forces doesn't have the concept of "chat time" (i.e. the mp_chattime cvar) like the other mods do. This prevents the nextmap plugin from executing the changelevel command...
Forum: General 07-29-2021, 19:58
Replies: 12
Views: 1,532
Posted By fysiks
Re: Amxx 1.9+ Opposing Force map vote bug

I added some debugging to these two plugins (based on 1.9). Run with these until you see the issue and then attach the resulting debug file "opposing_forces_mapchooser_debug.txt" (found in the mod...
Forum: Scripting Help 07-29-2021, 17:56
Replies: 6
Views: 213
Posted By fysiks
Re: Contain in .ini dont work

fgets() only reads a single line at a time so the variable only needs to be as long as the longest single line (plus 3). If that doesn't explain it for you then you need to attach at least an...
Forum: Scripting Help 07-29-2021, 16:46
Replies: 6
Views: 213
Posted By fysiks
Re: Contain in .ini dont work

The theoretical max is not really relevant here since it's much larger than you actually need. You should only use a value that make sense for the use case. For example, an IP address can only be...
Forum: Scripting Help 07-29-2021, 14:48
Replies: 6
Views: 213
Posted By fysiks
Re: Contain in .ini dont work

contain() and containi() return the index of the match. If it does not contain the string, it returns -1 (which will return true if used directly as the condition of an if statement). So, to...
Forum: General 07-28-2021, 19:45
Replies: 167
Views: 40,344
Posted By fysiks
Re: [Editor] AMXXPawn for Visual Studio Code

You should fork his repo, make the changes and create a pull request into his repo so that we don't have to guess what you are saying.
Forum: Scripting Help 07-28-2021, 19:24
Replies: 13
Views: 569
Posted By fysiks
Re: question about ham_spawn

The only caveat that I know of for using Ham_Spawn for the "player" entity is that you need to check if the user is alive before doing anything because it's called once when you join and you are not...
Forum: Suggestions / Requests 07-28-2021, 18:50
Replies: 1
Views: 594
Posted By fysiks
Re: DoD Team Manager Plugin

That is one that was on the dodplugins.net forums but the site is down now. I saved several of the plugins but that is one that I would never use so I do not have a backup of it. I have a few of...
Forum: General 07-28-2021, 18:17
Replies: 9
Views: 908
Posted By fysiks
Re: Compiling source code through GitHub

I'm not sure why you would need the chmod on amxxpc, I've never needed to do that. Also, you are missing an include file. Try disabling REAPI so that all used includes exist and see if that works.
Forum: General 07-28-2021, 17:42
Replies: 1
Views: 278
Posted By fysiks
Re: [EDITOR] Android Editor request

Use any available source code editor. If it doesn't already exist, it certainly won't exist specifically for AMX Mod X.
Forum: General 07-28-2021, 17:36
Replies: 12
Views: 1,532
Posted By fysiks
Re: Amxx 1.9+ Opposing Force map vote bug

Since both of your descriptions don't make much sense, it will probably require some significant debugging to get to the bottom of this.
Showing results 1 to 25 of 500

 
Forum Jump

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


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