Can't give points to players
-
This post is deleted!
-
@Nakero77 What is the caller of the menu_fast_reset() function?
-
@Nakero77 What is the caller of the menu_fast_reset() function?
JezuzLizard Im new to GSC so correct me if im wrong but menu_fast_reset() is a thread that should be inicialized since i write
menu thread menu_fast_reset();
few lines above, right?
-
JezuzLizard Im new to GSC so correct me if im wrong but menu_fast_reset() is a thread that should be inicialized since i write
menu thread menu_fast_reset();
few lines above, right?
This post is deleted! -
@Nakero77 What is the caller of the menu_fast_reset() function?
JezuzLizard since i get the ''close menu'' notify i dont think its a problem with the function, it might be related with the self.score tool
-
JezuzLizard since i get the ''close menu'' notify i dont think its a problem with the function, it might be related with the self.score tool
@Nakero77 Well if the menu is the caller than self is the menu. You are trying to do menu.score += 10000;. If you want to set a player's score you call the function on a player so self will be the player.
-
@Nakero77 Well if the menu is the caller than self is the menu. You are trying to do menu.score += 10000;. If you want to set a player's score you call the function on a player so self will be the player.
JezuzLizard didn't undertood tbh, what i need to change exacly?
inicialize the thread as
player thread menu_fast_reset();????
-
JezuzLizard didn't undertood tbh, what i need to change exacly?
inicialize the thread as
player thread menu_fast_reset();????
@Nakero77 I don't know what your codebase looks like so I don't know the exact answer. All I know is from the examples you've given me you are trying to set the score of a menu not a player. Either pass the player as self by making a player the caller, or pass a player as an argument and do player.score.
-
@Nakero77 I don't know what your codebase looks like so I don't know the exact answer. All I know is from the examples you've given me you are trying to set the score of a menu not a player. Either pass the player as self by making a player the caller, or pass a player as an argument and do player.score.
JezuzLizard i changed
self.score+=10000; into player.score+=10000;
but still getting nothing :(((
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login