Raised This Month: $ Target: $400
 0% 

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: JPTRON
Forum: Scripting 06-15-2020, 19:08
Replies: 7
Views: 1,391
Posted By JPTRON
Re: Menu just fade out after chosing an option.

Adding that code logs an error:

Attempted to create unknown entity type weapon_knife_!
NULL Ent in GiveNamedItem!

Seems that the plugin does not concatenate the strings using the "Format"...
Forum: Scripting 06-15-2020, 17:36
Replies: 7
Views: 1,391
Posted By JPTRON
Re: Menu just fade out after chosing an option.

Wow, that helped me a lot, I thought that "OnMapStart" wouldn't be necessary, I was wrong.
So, now it lets me change the page and when I select the knife, shows the message, but doesn't give it to...
Forum: Scripting 06-15-2020, 14:19
Replies: 7
Views: 1,391
Posted By JPTRON
Menu just fade out after chosing an option.

Hi,

I'm trying to code a basic paged menu where people can choose a knife to play with. (no skins)

When I call the command the menu shows on, but when I select something, it just fades out. I...
Forum: Scripting 06-07-2020, 01:53
Replies: 6
Views: 1,371
Posted By JPTRON
Re: WriteFileLine - Exception reported: invalid handle 0 (error: 4)

Thank you very much dude!! I didn't think about using cookies... So, again, I changed my code to this and it's working:


Handle g_hPointCookie;
int messagePoints;

public void OnPluginStart()...
Forum: Scripting 06-06-2020, 08:30
Replies: 6
Views: 1,371
Posted By JPTRON
Re: WriteFileLine - Exception reported: invalid handle 0 (error: 4)

Yhea, you're right.

I changed my code to this:


public Action Event_PlayerDeath(Event event, const char[] name, bool dontBroadcast) {

int victim =...
Forum: Scripting 06-06-2020, 05:06
Replies: 6
Views: 1,371
Posted By JPTRON
WriteFileLine - Exception reported: invalid handle 0 (error: 4)

Hello,

I'm trying to code my own KillReward plugin and I want to register the user points inside individuals .txt files.


#pragma semicolon 1

#define DEBUG

#define PLUGIN_AUTHOR "JPTRON"
Showing results 1 to 6 of 6

 
Forum Jump

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


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