hi its me (AGAIN )
i was working with the foreach statement , but it only works with one IDbutton:
my idea was:
to make 1 IDbutton with the nickname and the other IDbutton to check if you are on the track or not.
the last one works but the IDbutton with the nicknames doesnt work.
question: how to make 2 differend ID buttons with the foreach statement
i was working with the foreach statement , but it only works with one IDbutton:
my idea was:
to make 1 IDbutton with the nickname and the other IDbutton to check if you are on the track or not.
the last one works but the IDbutton with the nicknames doesnt work.
question: how to make 2 differend ID buttons with the foreach statement
$RL_HT1 = 100;
$Racers = getListOfPlayers("N");
FOREACH( $maVar IN $Racers )
openGlobalButton($maVar["value"],1,$RL_HT1,17,4,5,-1,32,GetPlayerVar($maVar["value"],"NickName"));
IF (GetPlayerVar($maVar["value"], "OnTrack"))
THEN
openGlobalButton($maVar["value"],18,$RL_HT1,3,4,1,-1,32,"^2#");
ELSE
openGlobalButton($maVar["value"],18,$RL_HT1,3,4,1,-1,32,"^1#");
ENDIF
$RL_HT1=$RL_HT1+4;
ENDFOREACH