#1

Hello, I have one doubt, and is not working, below you have a code, it is not functional (I think) is to store in NeedMedicTime [playerid] a value which is converted, like, the player level + 10 seconds is , one, am level 1, increases by 10 seconds from the default value (120) and onwards. Regardless of level, is half plus not much changes not, increases a few seconds in a coma, the higher the level, the longer is. It is something 10 to 20 seconds increases.


PHP код:
if (AccountData[playerid][pDonateRank] == 1)  

     new 
quantia AccountData[playerid][pNivel]* 10//10 seconds 
     
NeedMedicTime[playerid] = Quantia+120;  

else 

     new 
quantia AccountData[playerid][pNivel]* 20//20 seconds 
     
NeedMedicTime[playerid] = Quantia+120;  

Reply
#2

up!!!!!!
Reply
#3

I dont know what you want with this?
Reply
#4

Quote:
Originally Posted by Glenn332
Посмотреть сообщение
I dont know what you want with this?
I will explain further, the person is in hospital in a coma, and the patient must stay in the hospital depending on the level, very high level the patient is longer, very low level the patient is less time, I can not calculate, for example, each level player increases 20 seconds in hospital in a coma, the default value to stay in the hospital as a patient is 120, is something 20 seconds increases, the higher the level, the longer is.

Quote:

120 + level*20 = Time in hospital in a coma

PHP код:
     new quantia AccountData[playerid][pNivel]* 20//20 segundos 
     
NeedMedicTime[playerid] = Quantia+120
Reply
#5

And what is not working for you? Or are you just wondering if it will work?
The only issue I see is capitalisation with your variable names quantia and Quantia
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)