Help problem with errors fast rep+
#1

Код:
(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;
	}
Reply
#2

Код:
if(gTeam[playerid] == MB & GetPlayerScore[playerid] <= 49)
Reply
#3

again same errors
Reply
#4

Quote:
Originally Posted by Mijata
Посмотреть сообщение
again same errors
oh change & to &&
Reply
#5

again 4 errors
Reply
#6

pawn Код:
if(gTeam[playerid] == MB && GetPlayerScore[playerid] <= 49)
{
    SendClientMessage(playerid,COLOR_RED,"You need 50 score for it");
    return 0;
}
Reply
#7

Quote:
Originally Posted by ChromeAmazing
Посмотреть сообщение
pawn Код:
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;
    }
again 4 errors
maybe is problem new pawno?
Reply
#8

Quote:
Originally Posted by Mijata
Посмотреть сообщение
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;
    }
again 4 errors
maybe is problem new pawno?
Код:
        if(gTeam[playerid] == MB && GetPlayerScore(playerid) <= 49)
	{
	    SendClientMessage(playerid,COLOR_RED,"You need 50 score for it");
	    return 0;
	}
Reply
#9

again errors ??
Reply
#10

Quote:
Originally Posted by Mijata
Посмотреть сообщение
again errors ??
ur gteam[playerid] should look like PlayerInfo[playerid][gTeam] or some shit like that, but it isnt thats probably why.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)