Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 两人检查比分,并在第3栏显示结果(谁赢谁输或谁平)_Actionscript 3 - Fatal编程技术网

Actionscript 3 两人检查比分,并在第3栏显示结果(谁赢谁输或谁平)

Actionscript 3 两人检查比分,并在第3栏显示结果(谁赢谁输或谁平),actionscript-3,Actionscript 3,请帮帮我 我正在尝试进行一场双人比赛,结果页面上有一个问题,我需要在结果页面上显示谁赢了,谁输了,或者是否打成平局 这是我的闪存文件 好了,开始吧 if (p_1_scoreCount > p_2_scoreCount) { // Player №1 is winner. } else if (p_1_scoreCount < p_2_scoreCount) { // Player №2 is winner. } else { // It's a draw.

请帮帮我

我正在尝试进行一场双人比赛,结果页面上有一个问题,我需要在结果页面上显示谁赢了,谁输了,或者是否打成平局

这是我的闪存文件

好了,开始吧

if (p_1_scoreCount > p_2_scoreCount)
{
    // Player №1 is winner.
}
else if (p_1_scoreCount < p_2_scoreCount)
{
    // Player №2 is winner.
}
else
{
    // It's a draw.
}
if(p_1_scoreCount>p_2_scoreCount)
{
//玩家№1是赢家。
}
否则如果(p_1_分数计数
StackOverflow不是免费的代码交付服务。请编辑您的问题以询问特定的编程问题,同时显示您迄今为止试图解决该问题的代码示例。好的,很好,但问题是什么?您在此处声明的所有变量也将在结果框中提供。比较两个分数,并需要在结果页上显示谁赢得了一名或两名球员,如果分数相同,则需要显示平局,因此我仍停留在比较代码上。谢谢您的快速响应
if (p_1_scoreCount > p_2_scoreCount)
{
    // Player №1 is winner.
}
else if (p_1_scoreCount < p_2_scoreCount)
{
    // Player №2 is winner.
}
else
{
    // It's a draw.
}