Clanstats in database

Started by Nihongo^, Sep 08, 2016, 12:11 PM

Previous topic - Next topic

Nihongo^

its giving bug at line 536 which is

Quoteif ( Tag == null )   

btw i act upon your advice but my script still not loaded

KAKAN

Quote from: Nihongo^ on Sep 09, 2016, 04:01 PMits giving bug at line 536 which is

Quoteif ( Tag == null )   

btw i act upon your advice but my script still not loaded
http://pastebin.com/UcxKY5je
Try that. It's pretty much the same thing. Just try, don't ask me why. SLC knows about it.
oh no

Nihongo^

can't simply used that function some mind needed like i have to replace

Quotereturn Clan;
to
Quotereturn FindClan[ Tag ];

btw again its giving bug at

if( Clan == null )

KAKAN

Quote from: Nihongo^ on Sep 10, 2016, 07:20 AMcan't simply used that function some mind needed like i have to replace

Quotereturn Clan;
to
Quotereturn FindClan[ Tag ];

btw again its giving bug at

if( Clan == null )

add this before that:-
print( typeof Clan ); print( typeof clans );
oh no

Nihongo^

wait problem is not in print Tag i remove it
it still giving bug there

KAKAN

Quote from: Nihongo^ on Sep 10, 2016, 08:58 AMwait problem is not in print Tag i remove it
it still giving bug there
Just add it back and tell me the output.
oh no

Nihongo^

ok i'll added but i can't get it what is print( typeof clans ); ?

what does "type of clan" there's no function on it -.-

KAKAN

Quote from: Nihongo^ on Sep 10, 2016, 01:06 PMok i'll added but i can't get it what is print( typeof clans ); ?

what does "type of clan" there's no function on it -.-

The function is self explanatory. It prints the "type of" shit.
For ex:
We know, "This is a string" It's a string. Try printing typeof "this is a string" it will output as string and so on.
Like that, doing typeof 123 will print integer and doing typeof 123.123 will output float and so on.
So, according to our script, typeof clans should output array and typeof Tag should output either string or null which is what I want to see.
oh no


vito


KAKAN

Oh man, the problem is you're trying to use 'Tag' in the function find.
Replace that line with this:-
local Tag = clans.find(tag);
oh no

Nihongo^

oh so i replace , to ; my script run successful

see full image = http://i64.tinypic.com/2n9j2hv.png



but when i put the
Quoteprint( GetTag( "VU" ) )
it gave error again at same place :(

see full image = http://i67.tinypic.com/25kk9dt.png


KAKAN

you're printing this before having the clans array.
See below it, clans array is created after that.
So, put it after the clans array is created and the clans are inserted.
oh no

Nihongo^

oh well ok i place it after the array it gave bug now here

see full = http://i67.tinypic.com/2d2dcoy.png



so i remove the 
Quoteprint( typeof clans )

this happend
see full = http://i66.tinypic.com/1zx1pjo.png



DizzasTeR

if( Tag = null )

Should be

if( Tag == null )