.tostring doesnot exist

Started by Coolkid, May 10, 2016, 09:42 PM

Previous topic - Next topic

KAKAN

I already posted the correct answer, let me quote it again:
Quote from: KAKAN on May 11, 2016, 01:59 AM
Quote from: Mötley on May 11, 2016, 01:20 AMAlso that's a really poor use of a local

One method

local Password = HGet( "HSH_Password", player + " Password" ), Level = HGet( "HSH_Level", player.Name + " Level" );
The next method I prefer if I really need any locals
local
     Password = HGet( "HSH_Password", player + " Password" ),
     Level = HGet( "HSH_Level", player.Name + " Level" );


This is a easy to fix code. I will see how long it takes for you to fix it...

didn't get you. What do you mean by saying "Poor use of locals"?

Quote from: Murdock on May 10, 2016, 10:15 PM
Quote from: aXXo on May 10, 2016, 10:03 PMThe error is quite obvious.

Unfortunately he probably knows only 3 words in the English language and he will just ignore your post waiting for someone to give a ready to copy-and-paste script.
Yeah, here's your code:
function Shh( player, amount )
{
local q = SomeFunction();/*...*/
local d = GetSQLColumnData( q, 0 );
if( d == null )
{
//control!
return;
}
local yourshit = d + amount;
//Do it here!
}
@Coolkid please, if you can understand English, then you can understand my code too.
oh no

Cool

Quote from: Coolkid on Apr 26, 2016, 01:50 PMI don't want to be harsh here but I have to

We can't baby sit anymore hwre now this is the easiest prb to be. Solved  You cant solve your own problem which solution has been given and telling me you cant solve you solve your easiest problem lol