03.05.2012, 22:50
Olб pessoal estou com esse erro nesse code
pawn Код:
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4263) : error 017: undefined symbol "cmd"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4266) : error 017: undefined symbol "tmp"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4266) : error 017: undefined symbol "idx"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4267) : error 017: undefined symbol "tmp"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4268) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4268) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4269) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4272) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4275) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4299) : error 017: undefined symbol "cmd"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4302) : error 017: undefined symbol "tmp"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4302) : error 017: undefined symbol "idx"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4303) : error 017: undefined symbol "tmp"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4304) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4304) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4305) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4308) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4309) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4312) : error 017: undefined symbol "recrutado"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4313) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4315) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4315) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4317) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4319) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4319) : error 032: array index out of bounds (variable "OrgInfo")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG.pwn(4321) : error 032: array index out of bounds (variable "OrgInfo")
pawn Код:
if(!strcmp(cmd, "/convidar", true))
{
new giveplayer[20];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /convidar [playerid]");
recrutado = ReturnUser(tmp);
if(IsPlayerConnected(recrutado) && Org[playerid] > 0)
{
if(Cargo[playerid] < 6) return SendClientMessage(playerid, 0xFFFFFFFF, "ATENЗГO! Vocк nгo pode usar esse comando!");
Org[playerid] = Org[recrutado];
SendClientMessage(playerid, 0xFFFFFFFF, "Vocк convidou o player com sucesso!");
SendClientMessage(playerid, 0xFFFFFFFF, "Vocк acaba de ser convidado para uma facзгo!");
GetPlayerName(recrutado, giveplayer, 20);
switch (OrgInfo[Org[playerid]][Vaga])
{
case 0,1: { format(OrgInfo[Org[playerid]][Membro1], MAX_PLAYER_NAME, giveplayer); }
case 2: { format(OrgInfo[Org[playerid]][Membro2], MAX_PLAYER_NAME, giveplayer); }
case 3: { format(OrgInfo[Org[playerid]][Membro3], MAX_PLAYER_NAME, giveplayer); }
case 4: { format(OrgInfo[Org[playerid]][Membro4], MAX_PLAYER_NAME, giveplayer); }
case 5: { format(OrgInfo[Org[playerid]][Membro5], MAX_PLAYER_NAME, giveplayer); }
case 6: { format(OrgInfo[Org[playerid]][Membro6], MAX_PLAYER_NAME, giveplayer); }
case 7: { format(OrgInfo[Org[playerid]][Membro7], MAX_PLAYER_NAME, giveplayer); }
case 8: { format(OrgInfo[Org[playerid]][Membro8], MAX_PLAYER_NAME, giveplayer); }
case 9: { format(OrgInfo[Org[playerid]][Membro9], MAX_PLAYER_NAME, giveplayer); }
case 10: { format(OrgInfo[Org[playerid]][Membro10], MAX_PLAYER_NAME, giveplayer); }
}
SalvarOrgs();
OrgInfo[Org[playerid]][Vaga]++;
}
else return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo estб em uma facзгo, ou o player nгo estб conectado!");
return 1;
}
if(!strcmp(cmd, "/demitir", true))
{
new giveplayer[20];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /demitir[playerid]");
recrutado = ReturnUser(tmp);
if(IsPlayerConnected(recrutado) && Org[playerid] > 0)
{
if(Cargo[playerid] < 6) return SendClientMessage(playerid, 0xFFFFFFFF, "ATENЗГO! Vocк nгo pode usar esse comando!");
Org[recrutado] = 0;
Cargo[recrutado] = 0;
SendClientMessage(playerid, 0xFFFFFFFF, "Vocк demitiu o player com sucesso!");
SendClientMessage(playerid, 0xFFFFFFFF, "Vocк acaba de ser demitido de uma facзгo!");
GetPlayerName(recrutado, giveplayer, 20);
if(OrgInfo[org][Vaga] == 1)
{
format(OrgInfo[org][Membro1], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
}
if(OrgInfo[org][Vaga] == 2)
{
format(OrgInfo[org][Membro2], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
}
if(OrgInfo[org][Vaga] == 3)
{
format(OrgInfo[org][Membro3], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
}
if(OrgInfo[org][Vaga] == 4)
{
format(OrgInfo[org][Membro4], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
}
if(OrgInfo[org][Vaga] == 5)
{
format(OrgInfo[org][Membro5], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
}
if(OrgInfo[org][Vaga] == 6)
{
format(OrgInfo[org][Membro6], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
}
if(OrgInfo[org][Vaga] == 7)
{
format(OrgInfo[org][Membro7], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
}
if(OrgInfo[org][Vaga] == 8)
{
format(OrgInfo[org][Membro8], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
}
if(OrgInfo[org][Vaga] == 9)
{
format(OrgInfo[org][Membro9], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
}
if(OrgInfo[org][Vaga] == 10)
{
format(OrgInfo[org][Membro10], MAX_PLAYER_NAME, "Nenhum");OrgInfo[org][Vaga]--;
}
SalvarOrgs();
}
else return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo estб em uma facзгo, ou o player nгo estб conectado!");
return 1;
}
if(!strcmp(cmd, "/promover", true))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /promover [playerid] [cargo 1 - 6]");
recrutado = ReturnUser(tmp);
new tmp2[128];
tmp2 = strtok(cmdtext, idx);
if(!strlen(tmp2)) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /promover [playerid] [cargo 1 - 6]");
new cargo = strval(tmp2);
if(cargo < 1 || cargo > 6) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /promover [playerid] [cargo 1 - 6]");
if(IsPlayerConnected(recrutado) && Org[playerid] > 0)
{
if(Cargo[playerid] < 6) return SendClientMessage(playerid, 0xFFFFFFFF, "ATENЗГO! Vocк nгo pode usar esse comando!");
Cargo[recrutado] = cargo;
SendClientMessage(playerid, 0xFFFFFFFF, "Vocк promoveu o player com sucesso!");
SendClientMessage(playerid, 0xFFFFFFFF, "Vocк acaba de ser promovido na sua facзгo!");
return 1;
}
else return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo estб em uma facзгo, ou o player nгo estб conectado!");
return 1;
}