SA-MP Forums Archive
[Ajuda] Como resolve - 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] Como resolve (/showthread.php?tid=659450)



Como resolve - HusteD - 03.10.2018

C:\Users\Enzo\Desktop\Server de RPG\gamemodes\GMD.pwn(95) : error 021: symbol already defined: "AddPlayerClass"
C:\Users\Enzo\Desktop\Server de RPG\gamemodes\GMD.pwn(112) : error 001: expected token: ",", but found "."
C:\Users\Enzo\Desktop\Server de RPG\gamemodes\GMD.pwn(112) : error 029: invalid expression, assumed zero
C:\Users\Enzo\Desktop\Server de RPG\gamemodes\GMD.pwn(112) : error 029: invalid expression, assumed zero
C:\Users\Enzo\Desktop\Server de RPG\gamemodes\GMD.pwn(112) : fatal error 107: too many error messages on one line

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


5 Errors.


Re: Como resolve - MituhBR - 03.10.2018

Quote:
Originally Posted by HusteD
Посмотреть сообщение
C:\Users\Enzo\Desktop\Server de RPG\gamemodes\GMD.pwn(95) : error 021: symbol already defined: "AddPlayerClass"
C:\Users\Enzo\Desktop\Server de RPG\gamemodes\GMD.pwn(112) : error 001: expected token: ",", but found "."
C:\Users\Enzo\Desktop\Server de RPG\gamemodes\GMD.pwn(112) : error 029: invalid expression, assumed zero
C:\Users\Enzo\Desktop\Server de RPG\gamemodes\GMD.pwn(112) : error 029: invalid expression, assumed zero
C:\Users\Enzo\Desktop\Server de RPG\gamemodes\GMD.pwn(112) : fatal error 107: too many error messages on one line

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


5 Errors.
Manda as linhas dos erros, 95 atй a 112


Re: Como resolve - HusteD - 04.10.2018

e mano alguns cmds nгo querem funcionar no caso eu acho que todos aki

// FORWARDS
AddPlayerClass(188,1739.5986,-1622.1846,13.5469,0.0001,0,0,0,0,0,0); //
forward AtualizarPlayer(playerid);
forward KickPlayer(playerid);
forward BanPlayer(playerid);
forward OnPlayerRaceCheckpoint(playerid, CPMaisMais);
forward TempoVolta(playerid);
forward CongelarPlayers();
forward ReprandoVeiculos();
forward ContagemEvento();

main()
{
print("\nGameMode carregada com sucesso!\n\n");
}

public OnGameModeInit()
{
pub_Car[0] = AddStaticVehicleEx(560, Float:188,1704, Float:7576,-1620., Float:2540,13., Float:5546,359., 10, 10, 5000);

95 ate 112


Re: Como resolve - GSantana - 04.10.2018

o AddPlayerClass estб em alguma public ?


Re: Como resolve - Malandrin - 04.10.2018

Mano, remova esses Float: nem precisa disso e vocк estб colando "." nos finais dos nъmeros remova isso.

Й pro comando ficar mais ou menos assim
PHP код:
AddStaticVehicleEx(560188.17047576.-16202540.135546.35910105000); 



Re: Como resolve - Electrifying - 04.10.2018

Remova a tag Float: das coordenadas, e remova essas pontuaзхes antes das virgulas, e AddPlayerClass recomendo colocar em OnGameModeInit


Re: Como resolve - [BOPE]Seu._.Madruga - 04.10.2018

PHP код:
#include <a_samp>

forward AtualizarPlayer(playerid),
forward KickPlayer(playerid);
forward BanPlayer(playerid);
forward OnPlayerRaceCheckpoint(playeridCPMaisMais);
forward TempoVolta(playerid);
forward CongelarPlayers();
forward ReprandoVeiculos();
forward ContagemEvento();


main()
{
    print(
"\n----------------------------------");
    print(
"\nGameMode carregada com sucesso!\n\n");
    print(
"----------------------------------\n");
}

public 
OnGameModeInit()
{
    
AddPlayerClass(1881739.5986, -1622.184613.54690.0001000000);
    
pub_Car[0] = AddStaticVehicleEx(560188.17047576.-16202540.135546.35910105000);
    return 
1;




Re: Como resolve - HusteD - 04.10.2018

blz consegui agora na outra gm

C:\Users\Enzo\Desktop\Scavenge And Anormality Survivor\gamemodes\survive.pwn(139) : fatal error 100: cannot read from file: "modulos/admin.inc"

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


1 Error.
deve ter mas erros como esse.


Re: Como resolve - MituhBR - 04.10.2018

Quote:
Originally Posted by HusteD
Посмотреть сообщение
blz consegui agora na outra gm

C:\Users\Enzo\Desktop\Scavenge And Anormality Survivor\gamemodes\survive.pwn(139) : fatal error 100: cannot read from file: "modulos/admin.inc"

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


1 Error.
deve ter mas erros como esse.
Coloca a include admin.inc dentro da pasta modulos


Re: Como resolve - Malandrin - 04.10.2018

Quote:
Originally Posted by HusteD
Посмотреть сообщение
blz consegui agora na outra gm

C:\Users\Enzo\Desktop\Scavenge And Anormality Survivor\gamemodes\survive.pwn(139) : fatal error 100: cannot read from file: "modulos/admin.inc"

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


1 Error.
deve ter mas erros como esse.
A Gamemode nгo estб conseguindo ler o arquivo "Admin.inc" que estб localizado dentro da pasta gamemodes. Adicione ele dentro da pasta gamemodes/modulos/