help expeccted token ; but found stock - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help expeccted token ; but found stock (
/showthread.php?tid=618826)
help expeccted token ; but found stock -
Nightmares - 10.10.2016
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;
}
Re: help expeccted token ; but found stock - iLearner - 10.10.2016
Before
stock FormatSecToMinSec(time) there's a line, you need to put ; at the end of it.
Re: help expeccted token ; but found stock -
Nightmares - 10.10.2016
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;
}
Re: help expeccted token ; but found stock - iLearner - 10.10.2016
And line
1253 is
stockFormatSecToMinSec(time)[B][/B] ?
Re: help expeccted token ; but found stock -
Nightmares - 10.10.2016
Quote:
Originally Posted by iLearner
And line 1253 is stockFormatSecToMinSec(time)[B][/B] ?
|
yess
Re: help expeccted token ; but found stock -
Logic_ - 10.10.2016
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.
Re: help expeccted token ; but found stock -
Nightmares - 10.10.2016
thanks guys, i fixed it, it was a error in line 50 lol, i forgot ;, thanks rep to both