[Pedido] Erro Samp
#1

Quote:

C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5892) : error 017: undefined symbol "string"
C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5892) : error 017: undefined symbol "string"
C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5892) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5892) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Linha do Erro
Quote:

format(string, sizeof(string), "Vocк foi promovido a nнvel %s de admin, pelo admin %s Sua Funcao %s", lolz, sendername, funcao)

;
Reply
#2

Код:
new string[128];
Reply
#3

Erros Ao Copilar
Quote:

C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5891) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5896) : error 035: argument type mismatch (argument 1)
C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5896) : error 035: argument type mismatch (argument 1)
C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(589 : error 017: undefined symbol "arquivo"
C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(589 : error 017: undefined symbol "arquivo"
C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(589 : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(589 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.

CMD INTEIRO
Quote:

CMD:darfuncao(playerid, params[]) {
new admin, funcao[56];
new string[128];
new sendername[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_GRAD2, "Comando restrito apenas pra administradores.");
if(sscanf(params, "us[56]", admin, funcao)) return SendClientMessage(playerid, COLOR_GRAD1, "USE: /criar_funcao [{E01B4C}id/nome{B4B5B7}] [{249E33}funзгo{B4B5B7}]");
format(string, sizeof(string), "O Admin Setou Sua %s Funзao Para [%s]", sendername, funcao);
SendClientMessage(admin, LIGHTBLUE, string);
format(pAdmin, sizeof(string), "Vocк promoveu %s а funзгo %s de administraзгo.", sendername, funcao);
SendClientMessage(playerid, LIGHTBLUE, string);
format(arquivo, sizeof(arquivo), "Contas/%s.ini", sendername));
DOF2_SetString(arquivo, "Funcao", funcao);
DOF2_SaveFile();
format(PlayerInfo[admin][Funcao], 60, "%s", DOF2_GetString(arquivo, "Funcao"));
return 1;
}

Reply
#4

PHP код:
CMD:darfuncao(playeridparams[]) {
new 
adminfuncao[56], string[128], arquivo[128];
new 
sendername[MAX_PLAYER_NAME];
if(
PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playeridCOLOR_GRAD2"Comando restrito apenas pra administradores.");
if(
sscanf(params"us[56]"adminfuncao)) return SendClientMessage(playeridCOLOR_GRAD1"USE: /criar_funcao [{E01B4C}id/nome{B4B5B7}] [{249E33}funзгo{B4B5B7}]");
format(stringsizeof(string), "O Admin Setou Sua %s Funзao Para [%s]"sendernamefuncao);
SendClientMessage(adminLIGHTBLUEstring);
format(pAdminsizeof(string), "Vocк promoveu %s а funзгo %s de administraзгo."sendernamefuncao);
SendClientMessage(playeridLIGHTBLUEstring);
format(arquivosizeof(arquivo), "Contas/%s.ini"sendername));
DOF2_SetString(arquivo"Funcao"funcao);
DOF2_SaveFile();
format(PlayerInfo[admin][Funcao], 60"%s"DOF2_GetString(arquivo"Funcao"));
return 
1;

Qual й a linha 5896 ?
Reply
#5

Skull me add skype pfv , meu sistema de funcao ta dando errado
SKYPE : mentos.mirto
Reply
#6

Quote:
Originally Posted by JuniorTheDM
Посмотреть сообщение
Skull me add skype pfv , meu sistema de funcao ta dando errado
SKYPE : mentos.mirto
Nгo tenho skype :/
Posta aqui a dъvida, ou entгo pode mandar mp.
Reply
#7

ta vamos la
Reply
#8

CMD : /ADMINS
Quote:

CMD:admins(playerid, params[])
{
SendClientMessage(playerid, COR_ADMIN, "Admins Online:");
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 0 || PlayerInfo[i][pAdminTemp] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new lolz[40], funcao[56];
if(PlayerInfo[i][pAdminTemp] == 1)lolz = "TEMPORБRIO";
if(PlayerInfo[i][pAdmin] == 1)lolz = "1";
if(PlayerInfo[i][pAdmin] == 2)lolz = "2";
if(PlayerInfo[i][pAdmin] == 3)lolz = "3";
if(PlayerInfo[i][pAdmin] == 4)lolz = "4";
if(PlayerInfo[i][pAdmin] == 5)lolz = "5";
if(PlayerInfo[i][pAdmin] == 1337)lolz = "MASTER";
if(PlayerInfo[i][pAdmin] == 133lolz = "RESP. LIDERES";
if(PlayerInfo[i][pAdmin] == 1339)lolz = "RESP. ADM/HELPER";
if(PlayerInfo[i][pAdmin] == 1340)lolz = "RESP. EDIЗOES";
if(PlayerInfo[i][pAdmin] == 3001)lolz = "Sub-Dono";
if(PlayerInfo[i][pAdmin] == 5000)lolz = "Fundador";
new string[128];
if(admtrampando[i] == 1)
{
format(string, 128, "Admin: %s Nнvel: [%s] Funзao:[%s]", sendername, lolz, funcao);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
else
{
format(string, 128, "Admin: %s Nнvel: [%s][JOGANDO]", sendername, lolz, funcao);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
}
}
}
return true;
}


Nao Estб Aparecendo A Funзao no Jogo
Reply
#9

PHP код:
CMD:admins(playeridparams[])
{
SendClientMessage(playeridCOR_ADMIN"Admins Online:");
foreach(
Playeri)
{
if(
PlayerInfo[i][pAdmin] > || PlayerInfo[i][pAdminTemp] > 0)
{
if(
admhide[i] == 0)
{
GetPlayerName(isendernamesizeof(sendername));
new 
lolz[40], funcao[56];
if(
PlayerInfo[i][pAdminTemp] == 1)lolz "TEMPORБRIO";
if(
PlayerInfo[i][pAdmin] == 1)lolz "1";
if(
PlayerInfo[i][pAdmin] == 2)lolz "2";
if(
PlayerInfo[i][pAdmin] == 3)lolz "3";
if(
PlayerInfo[i][pAdmin] == 4)lolz "4";
if(
PlayerInfo[i][pAdmin] == 5)lolz "5";
if(
PlayerInfo[i][pAdmin] == 1337)lolz "MASTER";
if(
PlayerInfo[i][pAdmin] == 133lolz "RESP. LIDERES";
if(
PlayerInfo[i][pAdmin] == 1339)lolz "RESP. ADM/HELPER";
if(
PlayerInfo[i][pAdmin] == 1340)lolz "RESP. EDIЗOES";
if(
PlayerInfo[i][pAdmin] == 3001)lolz "Sub-Dono";
if(
PlayerInfo[i][pAdmin] == 5000)lolz "Fundador";
new 
string[128];
if(
admtrampando[i] == 1)
{
format(string128"Admin: %s Nнvel: [%s] Funзao:[%s]"sendernamelolzPlayerInfo[i][Funcao]);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
else
{
format(string128"Admin: %s Nнvel: [%s] Funзao:[%s] [JOGANDO]"sendernamelolzPlayerInfo[i][Funcao]);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
}
}
}
return 
true;

Tenta...
@editado slksks
Reply
#10

ERRO NESSA LINHA
Quote:

format(string, 128, "Admin: %s Nнvel: [%s] Funзao:[%s]", [sendername], [lolz], [funcao]);

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)