help expeccted token ; but found stock
#1

help me pelase

Код:
(1253) : error 001: expected token: ";", but found "stock"
Код:
stock FormatSecToMinSec(time)
{
    new string[8], seconds = time%60, minutes = floatround((time%3600)/60, floatround_floor);
    format(string, sizeof(string), "%02d:%02d", minutes, seconds);
    return string;
}
Reply
#2

Before stock FormatSecToMinSec(time) there's a line, you need to put ; at the end of it.
Reply
#3

Quote:
Originally Posted by iLearner
Посмотреть сообщение
Before stock FormatSecToMinSec(time) there's a line, you need to put ; at the end of it.
there is only defines

Код:
//OnGangTagQueryFinish Threads
#define			LOAD_GANGTAGS					1
#define			SAVE_GANGTAG					2

stock FormatSecToMinSec(time)
{
    new string[8], seconds = time%60, minutes = floatround((time%3600)/60, floatround_floor);
    format(string, sizeof(string), "%02d:%02d", minutes, seconds);
    return string;
}
Reply
#4

And line 1253 is stockFormatSecToMinSec(time)[B][/B] ?
Reply
#5

Quote:
Originally Posted by iLearner
Посмотреть сообщение
And line 1253 is stockFormatSecToMinSec(time)[B][/B] ?
yess
Reply
#6

Remove the keyword 'stock',
defines must be defined at the top of the script for ease,
before the defines you have a line which is missing a semi colon.
Reply
#7

thanks guys, i fixed it, it was a error in line 50 lol, i forgot ;, thanks rep to both
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)