Errors that i cannot explain.
#5

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
Oh, yeah, my bad. The error is actually because you don't have brackets around your sizeof function .
No, that's not true. The errors come from sizeof, because he is trying to determinate the sizeof of a 2D Array.
So you must do like this:
PHP код:
format(smallstring[0], 50"%d%d%d%d%d",random(9),random(9),random(9),random(9),random(9)); // used for the uniqe faction code
mysql_real_escape_string(smallstring[0], eStr[0]); 
And i don't understand why you don't use random(10) ... because random(9) can generates only this numbers:
• 0
• 1
• 2
• 3
• 4
• 5
• 6
• 7
• 8
And because an integer can't starts with 0 ( something like: 0153 -> this will be transformed in 153 ), i suggest you to do like this:
PHP код:
format(smallstring[0], 50"%d", (10000 random(99999)))); // used for the uniqe faction code
mysql_real_escape_string(smallstring[0], eStr[0]); 
Reply


Messages In This Thread
Errors that i cannot explain. - by Danny - 17.07.2011, 09:13
Re: Errors that i cannot explain. - by [HiC]TheKiller - 17.07.2011, 09:14
Re: Errors that i cannot explain. - by Danny - 17.07.2011, 09:17
Re: Errors that i cannot explain. - by [HiC]TheKiller - 17.07.2011, 09:32
Re: Errors that i cannot explain. - by MoroDan - 17.07.2011, 09:36
Re: Errors that i cannot explain. - by Pghpunkid - 17.07.2011, 09:40
Re: Errors that i cannot explain. - by Danny - 17.07.2011, 10:06

Forum Jump:


Users browsing this thread: 1 Guest(s)