[Ajuda] Erro!!!!
#1

Bom galera to com 1 ERRO no meu GM e quero a ajuda de vocкs.

pawn Код:
C:\Documents and Settings\******\Desktop\*****\gamemodes\*****.pwn(2713) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\*****\Desktop\*****\gamemodes\*****.pwn(2713) : error 001: expected token: ",", but found ";"
Linha 2713

pawn Код:
format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[PlayerInfo[giveplayerid][pMember]]);
codigo completo

pawn Код:
stock AddMembro(giveplayerid)
{
    new org[128];
    new playerid;
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername))
    format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[PlayerInfo[giveplayerid][pMember]]);
    if(!DOF2_FileExists(org))
    {
        DOF2_CreateFile(org);
        for(new i=0;i<sizeof(OrgsCargos);i++)
        {
            if(i==0 && PlayerInfo[giveplayerid][pLeader] != 0)
               DOF2_SetString(org,"Lнder",sendername);
            else
                DOF2_SetString(org,OrgsCargos[i],"Nenhum");
        }
    }
    else
    {
        new l;
        if(PlayerInfo[giveplayerid][pRank] == 6)
            l=0;
        else if(PlayerInfo[giveplayerid][pRank] < 4)
            l=3;

        for(new i=l;i<sizeof(OrgsCargos);i++)
            if(strcmp(DOF2_GetString(org,OrgsCargos[i]),"Nenhum",true)==0)
                return DOF2_SetString(org,OrgsCargos[i],PlayerInfo[giveplayerid][pName]);//Linha 2713

        return SendClientMessage(giveplayerid,COLOR_RED,"[ERRO] Esta organizaзгo jб atingiu o limite de membros.");
    }
    return 1;
}
Grato desde Jбaa +REP pra qm resolveer
Reply
#2

@EDIT nem vi a linha direito
Reply
#3

pawn Код:
GetPlayerName(playerid, sendername, sizeof(sendername));
Reply
#4

Toma ai '-'
PHP код:
stock AddMembro(giveplayerid)
{
    new 
org[128];
    new 
playerid;
    new 
sendername[MAX_PLAYER_NAME];
     
GetPlayerName(playeridsendernamesizeof(sendername))
    
format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[PlayerInfo][giveplayerid][pMember]);
    if(!
DOF2_FileExists(org))
    {
        
DOF2_CreateFile(org);
        for(new 
i=0;i<sizeof(OrgsCargos);i++)
        {
            if(
i==&& PlayerInfo[giveplayerid][pLeader] != 0)
               
DOF2_SetString(org,"Lнder",sendername);
            else
                
DOF2_SetString(org,OrgsCargos[i],"Nenhum");
        }
    }
    else
    {
        new 
l;
        if(
PlayerInfo[giveplayerid][pRank] == 6)
            
l=0;
        else if(
PlayerInfo[giveplayerid][pRank] < 4)
            
l=3;

        for(new 
i=l;i<sizeof(OrgsCargos);i++)
               if(
strcmp(DOF2_GetString(org,OrgsCargos[i]),"Nenhum",true)==0)
                return 
DOF2_SetString(org,OrgsCargos[i],PlayerInfo[giveplayerid][pName]);//Linha 2713

        
return SendClientMessage(giveplayerid,COLOR_RED,"[ERRO] Esta organizaзгo jб atingiu o limite de membros.");
    }
    return 
1;

Reply
#5

@Matheus_Alcapone
Nгo funfo amigo

@Coreia

Nгo й isso q quero amigo

@Life Advanced
Isso mano, sу q sobro 4 erros na mesma linha (2713)

pawn Код:
C:\Documents and Settings\******\Desktop\******\gamemodes\******.pwn(2713) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\******\Desktop\******\gamemodes\******.pwn(2713) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\******\Desktop\******\gamemodes\******.pwn(2713) : error 029: invalid expression, assumed zero
C:\Documents and Settings\*****\Desktop\******\gamemodes\******.pwn(2713) : fatal error 107: too many error messages on one line
Reply
#6

Quote:
Originally Posted by victor304
Посмотреть сообщение
@Matheus_Alcapone
Nгo funfo amigo

@Coreia

Nгo й isso q quero amigo

@Life Advanced
Isso mano, sу q sobro 4 erros na mesma linha (2713)

pawn Код:
C:\Documents and Settings\******\Desktop\******\gamemodes\******.pwn(2713) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\******\Desktop\******\gamemodes\******.pwn(2713) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\******\Desktop\******\gamemodes\******.pwn(2713) : error 029: invalid expression, assumed zero
C:\Documents and Settings\*****\Desktop\******\gamemodes\******.pwn(2713) : fatal error 107: too many error messages on one line
Meu amigo tб faltando fechar a declaraзгo do getplayername

pawn Код:
GetPlayerName(playerid,sendername,sizeof(sendername));
Tenta pode tentar que vai
Reply
#7

Quote:
Originally Posted by victor304
Посмотреть сообщение
@Matheus_Alcapone
Nгo funfo amigo

@Coreia

Nгo й isso q quero amigo

@Life Advanced
Isso mano, sу q sobro 4 erros na mesma linha (2713)

pawn Код:
C:\Documents and Settings\******\Desktop\******\gamemodes\******.pwn(2713) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\******\Desktop\******\gamemodes\******.pwn(2713) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\******\Desktop\******\gamemodes\******.pwn(2713) : error 029: invalid expression, assumed zero
C:\Documents and Settings\*****\Desktop\******\gamemodes\******.pwn(2713) : fatal error 107: too many error messages on one line
Manda Linha ' 2713
Reply
#8

Quote:
Originally Posted by Coreia
Посмотреть сообщение
Meu amigo tб faltando fechar a declaraзгo do getplayername

pawn Код:
GetPlayerName(playerid,sendername,sizeof(sendername));
Tenta pode tentar que vai
Pronto akele erro saiu, mais entro outro leia ae

pawn Код:
C:\Documents and Settings\Particular\Desktop\LSLife\gamemodes\LSLife3.pwn(2713) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Particular\Desktop\LSLife\gamemodes\LSLife3.pwn(2713) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Particular\Desktop\LSLife\gamemodes\LSLife3.pwn(2713) : warning 215: expression has no effect
C:\Documents and Settings\Particular\Desktop\LSLife\gamemodes\LSLife3.pwn(2713) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Particular\Desktop\LSLife\gamemodes\LSLife3.pwn(2713) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply
#9

Quote:
Originally Posted by victor304
Посмотреть сообщение
Pronto akele erro saiu, mais entro outro leia ae

pawn Код:
C:\Documents and Settings\Particular\Desktop\LSLife\gamemodes\LSLife3.pwn(2713) : error 033: array must be indexed (variable "PlayerInfo")
C:\Documents and Settings\Particular\Desktop\LSLife\gamemodes\LSLife3.pwn(2713) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Particular\Desktop\LSLife\gamemodes\LSLife3.pwn(2713) : warning 215: expression has no effect
C:\Documents and Settings\Particular\Desktop\LSLife\gamemodes\LSLife3.pwn(2713) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Particular\Desktop\LSLife\gamemodes\LSLife3.pwn(2713) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
@Edit -> O Erro й que vocк errou na sua Variavel, Nуs nгo sabemos qual e sua Variavel por isso Vo tentar Chutar pra ver se Pega ai !
PHP код:
stock AddMembro(giveplayerid)
{
    new 
org[128];
    new 
playerid;
    new 
sendername[MAX_PLAYER_NAME];
     
GetPlayerName(playeridsendernamesizeof(sendername))
    
format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[Player][giveplayerid][pMember]);
    if(!
DOF2_FileExists(org))
    {
        
DOF2_CreateFile(org);
        for(new 
i=0;i<sizeof(OrgsCargos);i++)
        {
            if(
i==&& Player[giveplayerid][pLeader] != 0)
               
DOF2_SetString(org,"Lнder",sendername);
            else
                
DOF2_SetString(org,OrgsCargos[i],"Nenhum");
        }
    }
    else
    {
        new 
l;
        if(
Player[giveplayerid][pRank] == 6)
            
l=0;
        else if(
Player[giveplayerid][pRank] < 4)
            
l=3;
        for(new 
i=l;i<sizeof(OrgsCargos);i++)
               if(
strcmp(DOF2_GetString(org,OrgsCargos[i]),"Nenhum",true)==0)
                return 
DOF2_SetString(org,OrgsCargos[i],Player[giveplayerid][pName]);//Linha 2713
        
return SendClientMessage(giveplayerid,COLOR_RED,"[ERRO] Esta organizaзгo jб atingiu o limite de membros.");
    }
    return 
1;

Reply
#10

Quote:
Originally Posted by Life Advanced
Посмотреть сообщение
@Edit -> O Erro й que vocк errou na sua Variavel, Nуs nгo sabemos qual e sua Variavel por isso Vo tentar Chutar pra ver se Pega ai !
PHP код:
stock AddMembro(giveplayerid)
{
    new 
org[128];
    new 
playerid;
    new 
sendername[MAX_PLAYER_NAME];
     
GetPlayerName(playeridsendernamesizeof(sendername))
    
format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[Player][giveplayerid][pMember]);
    if(!
DOF2_FileExists(org))
    {
        
DOF2_CreateFile(org);
        for(new 
i=0;i<sizeof(OrgsCargos);i++)
        {
            if(
i==&& Player[giveplayerid][pLeader] != 0)
               
DOF2_SetString(org,"Lнder",sendername);
            else
                
DOF2_SetString(org,OrgsCargos[i],"Nenhum");
        }
    }
    else
    {
        new 
l;
        if(
Player[giveplayerid][pRank] == 6)
            
l=0;
        else if(
Player[giveplayerid][pRank] < 4)
            
l=3;
        for(new 
i=l;i<sizeof(OrgsCargos);i++)
               if(
strcmp(DOF2_GetString(org,OrgsCargos[i]),"Nenhum",true)==0)
                return 
DOF2_SetString(org,OrgsCargos[i],Player[giveplayerid][pName]);//Linha 2713
        
return SendClientMessage(giveplayerid,COLOR_RED,"[ERRO] Esta organizaзгo jб atingiu o limite de membros.");
    }
    return 
1;

pawn Код:
C:\Documents and Settings\Particular\*\*\*\*.pwn(2713) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\*\Desktop\*\gamemodes\*.pwn(2713) : error 017: undefined symbol "Player"
C:\Documents and Settings\*\Desktop\*\gamemodes\*.pwn(2713) : error 029: invalid expression, assumed zero
C:\Documents and Settings\*\Desktop\*\gamemodes\*.pwn(2713) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)