Re: HoloCMS/PHPRetro Add-On "Limit of coins"
That's better, this type of code belongs in the emulator.
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
Quote:
Originally Posted by
Obvilion
Thanks I've also coded it in C# and VB.NET
C#:
PHP Code:
#region coinlimit
int limit = 20000;
if (_Credits < limit)
{
sendData("BKYou now have " + _Credits + ", the limit is: " + limit + ", you are safe for now.");
}
else
{
if (_Credits > limit)
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET credits = " + limit + " WHERE id = " + userID + "");
sendData("You now have " + _Credits + ", your coins are now being reduced below the limit.");
}
}
#endregion
VB.NET:
PHP Code:
#Region "coinlimit"
Dim limit As Integer = 20000
If _Credits < limit Then
sendData("BKYou now have " & _Credits & ", the limit is: " & limit & ", you are safe for now.")
Else
If _Credits > limit Then
Using dbClient As DatabaseClient = Eucalypt.dbManager.GetClient()
dbClient.runQuery("UPDATE users SET credits = " & limit & " WHERE id = " & userID & "")
sendData("You now have " & _Credits & ", your coins are now being reduced below the limit.")
End Using
End If
End If
#End Region
Where would the code go and would it work in holopooling?
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
The php code is from AresCJ, he released this on ótaku studios.
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
Quote:
Originally Posted by
Eronisch
The php code is from AresCJ, he released this on ótaku studios.
No, it's not... I coded this and I told him to put on Otaku Studios, lmao.. What a noob of you, trying to once again make a fool out of me, because you can't code.
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
Where would the server code go and would it work in holopooling?
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
Looks good, Im not to sure if its something i can use but this would be good on a request form for credits. Just say you can topup credits if your under 1000 the the most of 1000. There an idea :)
Will you allow me to use the source to speed my new project up, your get full rights to your side of cource.
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
Quote:
Originally Posted by
tweeney
Where would the server code go and would it work in holopooling?
The C# code works for holopooling and it'll got in the logging section. Where you login and you get the
PHP Code:
refreshCredits()
or something of the sort, not sure off the brain.
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
You can use both scripts for Emu & Site, But if i was you remove the you are under the limit or you have X credits..
it only warns if you are over the limit and put it back to the limit
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
This was released by aresCJ on otaku.. i see no credits.
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
Quote:
Originally Posted by
Solos
This was released by aresCJ on otaku.. i see no credits.
he said he told him to release noob!!!
http://i228.photobucket.com/albums/e...f?t=1268163353
there you go Solos thats for you ^^
cya
Peace,
sean111
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
Your post is very good, but members can purchase credits for them were coming in hand and not in the catalog ¬ ¬ apologize. im sorry
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
No, he doesnt. he says "So I've coded a script," I... I
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
Quote:
Originally Posted by
Solos
No, he doesnt. he says "So I've coded a script," I... I
To make you shutup, I'll tell AresCJ to post on here saying "Obvilion coded it, and he allowed me to release it on Otaku"
damn, you immigrants.
I'm working on the catalog portion as well, it'll be on the first post when I'm done
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
I didn't code none of this, so stop confronting him about this, when you know nothing. He told me I could release on Otaku, since he don't have a Otaku acc. So... I did. Besides, we work together all the time, we don't gotta put credits for each other because if he wanna release my work, he can just ask, and he'll get an answer and vice versa. Anyways, good job mate.
Re: HoloCMS/PHPRetro Add-On "Limit of coins"
o.O Cj Told Yous, Haha. Nice Work, Now My Credits Can't Go Through The Roof!:P:P:P