11.10.2012, 17:33
Bom galera to com 1 ERRO no meu GM e quero a ajuda de vocкs.
Linha 2713
codigo completo
Grato desde Jбaa +REP pra qm resolveer
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 ";"
pawn Код:
format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[PlayerInfo[giveplayerid][pMember]]);
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;
}