27.05.2015, 22:46
Код:
(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; }