#1

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()
Reply
#2

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
Reply
#3

YEs thanks, its working now! THanks man. Lock admins
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)