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

amaterish number problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-26-2018 , 09:09   amaterish number problem
Reply With Quote #1

hi...i have:
PHP Code:
new number
new number_players

public function1id )
{
       
number++
}
//after 10sec task
public function111id )
{
//lets say number got to 10
       
number_players number //== 10
       
number -= 1
}
public 
function1214id )
{
       
client_printidprint_chat"%d %d"number_playersnumber //this is the problem

shouldnt number_players stays at 10, but number to decrease/change ? in my code (example) both are changing the same..any exaplantion is welcome, thanks
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-26-2018 , 10:09   Re: amaterish number problem
Reply With Quote #2

This is barely an explanation, explain more what are you trying to achieve?

When is function1 is called? At which forward?
When function111 task start? At which forward?
When function1214 print the message?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 09-26-2018 at 10:13.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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