SA-MP Forums Archive
[Ajuda] Nгo consigo achaar o erro, talvez alguйm consiga me ajudar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Nгo consigo achaar o erro, talvez alguйm consiga me ajudar (/showthread.php?tid=378093)



Nгo consigo achaar o erro, talvez alguйm consiga me ajudar - Lekebfc - 16.09.2012

Erroos-

C:\Gts RPG\Gts\gamemodes\Gts.pwn(2423) : error: 035: argument type mismatch (argument 2)
C:\Gts RPG\Gts\gamemodes\Gts.pwn(2423) : error: 035: argument type mismatch (argument 2)
C:\Gts RPG\Gts\gamemodes\Gts.pwn(2423) : error: 035: argument type mismatch (argument 2)
C:\Gts RPG\Gts\gamemodes\Gts.pwn(2423) : error: 035: argument type mismatch (argument 2)
C:\Gts RPG\Gts\gamemodes\Gts.pwn(2423) : error: 076: syntax error in the expression, or invalid function call
C:\Gts RPG\Gts\gamemodes\Gts.pwn(2423) : warning: 203: symbol is never used: "DivulguersOtarios"

Linha dos erros-

if(dini_Int("nickban.ini",PlayerName(playerid))== 1)
if(dini_Int("banidos.ini",PlayerName(playerid)) == 1)
if(dini_Int("nickban.ini",PlayerName(playerid)) == 1){
if(dini_Int("banidos.ini",PlayerName(playerid)) == 1){

E clico para aparecer a linha do ultimo erro, aparece uma caixa com estб mensagem

"17628 -- 17629" is not a valid integer value


Re: Nгo consigo achaar o erro, talvez alguйm consiga me ajudar - DartakousLien - 16.09.2012

voce tem essas linhas seguindas?


Re: Nгo consigo achaar o erro, talvez alguйm consiga me ajudar - Lekebfc - 16.09.2012

Como assim? ;s


Re: Nгo consigo achaar o erro, talvez alguйm consiga me ajudar - DartakousLien - 16.09.2012

tipo,

if(dini_Int("nickban.ini",PlayerName(playerid))== 1)
if(dini_Int("banidos.ini",PlayerName(playerid)) == 1)
if(dini_Int("nickban.ini",PlayerName(playerid)) == 1){
if(dini_Int("banidos.ini",PlayerName(playerid)) == 1){

isso ta tudo seguindo ?


Re: Nгo consigo achaar o erro, talvez alguйm consiga me ajudar - Lekebfc - 16.09.2012

Nгo nгoooo... estгoo assim


dini_IntSet(file,"pAdm01",0);
if(dini_Int("nickban.ini",PlayerName(playerid))== 1)
{
SendClientMessage(playerid, 0x11B1FFAA, "Vocк foi banido Motivo: Vocк estб banido!");
format(sstring, sizeof(sstring), "%s (%d) Foi banido |Motivo|: Conta estб banida!", aname,playerid);
SendClientMessageToAll(0x11B1FFAA, sstring);
Kick(playerid);
return 1;
}


if(dini_Int("banidos.ini",PlayerName(playerid)) == 1)
{
SendClientMessage(playerid, 0x11B1FFAA, "Vocк foi banido |Motivo|: Conta estб banida!");
format(sstring, sizeof(sstring), "%s (%d) Foi banido |Motivo|: Conta estб banida", aname,playerid);
SendClientMessageToAll(0x11B1FFAA, sstring);
Kick(playerid);
return 1;
}


dini_IntSet(file,"aAdmin",0);
if(dini_Int("nickban.ini",PlayerName(playerid)) == 1){
SendClientMessage(playerid, 0x11B1FFAA, "Vocк foi Explusado Motivo: Vocк estб banido!");
format(sstring, sizeof(sstring), "%s (%d) Foi Explusado |Motivo|: Conta estб banida!", aname,playerid);
SendClientMessageToAll(0x11B1FFAA, sstring);
Kick(playerid);
return 1;
}


if(dini_Int("banidos.ini",PlayerName(playerid)) == 1){
SendClientMessage(playerid, 0x11B1FFAA, "Vocк foi Explusado |Motivo|: Conta estб banida!");
format(sstring, sizeof(sstring), "%s (%d) Foi Explusado |Motivo|: Conta estб banida", aname,playerid);
SendClientMessageToAll(0x11B1FFAA, sstring);
Kick(playerid);
return 1;
}


Re: Nгo consigo achaar o erro, talvez alguйm consiga me ajudar - Lekebfc - 16.09.2012

Alguйm?


Re: Nгo consigo achaar o erro, talvez alguйm consiga me ajudar - arakuta - 16.09.2012

Final do GM

pawn Код:
stock PlayerName(playerid)
{
    new PlayerName[24];
    GetPlayerName(playerid,PlayerName,sizeof(PlayerName);
}
Caso ja tenha uma stock parecida, substitua por essa.

Caso nгo der, troque PlayerName(playerid) nas condiзхes por GetPlayerName(playerid);


Re: Nгo consigo achaar o erro, talvez alguйm consiga me ajudar - Lekebfc - 16.09.2012

Maiis que luugar eu colco esse

Quote:

stock PlayerName(playerid)
{
new PlayerName[24];
GetPlayerName(playerid,PlayerName,sizeof(PlayerNam e);
}

Teem um lugar definido? ou no final de todo o script?


Re: Nгo consigo achaar o erro, talvez alguйm consiga me ajudar - .FuneraL. - 16.09.2012

Coloca no Final de todo o Script, e isso й assim:

pawn Код:
stock PlayerName(playerid)
{
     new PlayerName[24];
     GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
     return PlayerName;
}



Re: Nгo consigo achaar o erro, talvez alguйm consiga me ajudar - Lekebfc - 16.09.2012

Fiz isso
Diminuiu
Tinha 5 erros
Ficoou apenas Dois
Mas estб mostrando esse erro

C:\Gts RPG\Gts\gamemodes\Gts.pwn(17936) : error: 021: symbol already defined: "PlayerName"

e й nesse texto
stock PlayerName(playerid)
{
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
return PlayerName;
}
================================================== ====
E o outroo erro