(13676) : error 028: invalid subscript (not an array or too many subscripts): "GetPlayerScore"
(13676) : error 001: expected token: ";", but found "]"
(13676) : error 029: invalid expression, assumed zero
(13676) : fatal error 107: too many error messages on one line
public OnPlayerRequestSpawn(playerid) { if(pInfo[playerid][Registered] == 1 && pInfo[playerid][Logged] == 0) { SendClientMessage(playerid,red,"Error: You must be logged first!"); return 0; } new team1 = GetPlayersInTeamFromMaxPlayers(C1);//team1 = how many players are in TEAM_ONE.. new team2 = GetPlayersInTeamFromMaxPlayers(T1);//team2 = how many players are in TEAM_TWO.. if(team1 > team2 && gTeam[playerid] == C1)//if team1 has more players than team2 and the player is trying to spawn as TEAM_ONE.. { GameTextForPlayer(playerid, "~r~Team Full!~n~~w~Choose Another Team!", 3000, 5);//Tell them its full, choose another team.. return 0;//And stop them from spawning.. } else if(team2 > team1 && gTeam[playerid] == T1)//if team2 has more players than team1 and the player is trying to spawn as TEAM_TWO.. { GameTextForPlayer(playerid, "~r~Team Full!~n~~w~Choose Another Team!", 3000, 5);//Tell them its full, choose another team.. return 0;//And stop them from spawning.. } LINE 13676----------------------- > if(gTeam[playerid] == MB & GetPlayerScore[playerid] <= 49); { SendClientMessage(playerid,COLOR_RED,"You need 50 score for it"); return 0; } return 1; }
if(gTeam[playerid] == MB & GetPlayerScore[playerid] <= 49)
if(gTeam[playerid] == MB && GetPlayerScore[playerid] <= 49)
{
SendClientMessage(playerid,COLOR_RED,"You need 50 score for it");
return 0;
}
pawn Код:
|
else if(team2 > team1 && gTeam[playerid] == T1)//if team2 has more players than team1 and the player is trying to spawn as TEAM_TWO..
{
GameTextForPlayer(playerid, "~r~Team Full!~n~~w~Choose Another Team!", 3000, 5);//Tell them its full, choose another team..
return 0;//And stop them from spawning..
}
------------->if(gTeam[playerid] == MB && GetPlayerScore[playerid] <= 49)
{
SendClientMessage(playerid,COLOR_RED,"You need 50 score for it");
return 0;
}
pawn Код:
maybe is problem new pawno? |
if(gTeam[playerid] == MB && GetPlayerScore(playerid) <= 49) { SendClientMessage(playerid,COLOR_RED,"You need 50 score for it"); return 0; }