Wrong - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Wrong (
/showthread.php?tid=253389)
Wrong -
gamerhead - 06.05.2011
Hi everybody, i whas making a reaction test. And came a problem this:
F:\gs.pwn(1233) : error 002: only a single statement (or expression) can follow each "case
And this is the code:
function time_ReactionProgress()
{
switch(time_TestBusy)
{
case true:
{
new
string[128]
;
format(string, sizeof(string), "« No-one won the reaction-test. New one starting in %d minutes. »", (TIME/60000));
SendClientMessageToAll(PURPLE, string);
time_ReactionTimer = SetTimer("time_ReactionTest", TIME, 1);
}
}
return 1;
}
This is line 1233: function time_ReactionProgress()
Re: Wrong -
Skaizo - 06.05.2011
pawn Код:
function time_ReactionProgress()
{
switch(time_TestBusy)
{
case true
{
new string[128] ;
format(string, sizeof(string), "« No-one won the reaction-test. New one starting in %d minutes. »,(TIME/60000));
SendClientMessageToAll(PURPLE, string);
time_ReactionTimer = SetTimer("time_ReactionTest", TIME, 1);
}
return 1;
}
I think so
Re: Wrong -
gamerhead - 06.05.2011
YEs thanks, its working now! THanks man. Lock admins