Time - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Time (
/showthread.php?tid=582311)
Time -
SukMathcuck - 19.07.2015
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;
}
Re: Time -
SukMathcuck - 19.07.2015
up!!!!!!
Re: Time -
Glenn332 - 19.07.2015
I dont know what you want with this?
Re: Time -
SukMathcuck - 20.07.2015
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;
Re: Time -
!damo!spiderman - 20.07.2015
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