SA-MP Forums Archive
[Ajuda] Portao de CMD - 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] Portao de CMD (/showthread.php?tid=431281)



Portao de CMD - AutoClick - 17.04.2013

Oque tб errado nesse cуdigo?
Код:
#include <a_samp>
#include <streamer>

#define PASTA_CONTAS "/Contas/%s.ini"

new PortaoClick;
new aname[MAX_PLAYER_NAME];

#if defined FILTERSCRIPT
#else
#endif

public OnGameModeInit()
{
PortaoClick = CreateObject(980, 321.5, -1188.1999511719, 77.900001525879, 0.0000, 0.0000, 218.0000);

return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext,"/abclick", true)==0){
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(strcmp(aname, "AutoClick", true) == 0){
MoveObject(PortaoClick,312, -1195.6999511719, 77.699996948242, 3.0, 0.0000, 0.0000, 218.0000);
SendClientMessage(playerid,0x607840AA, "Bem vindo AutoClick!");
return 1;
} else {
SendClientMessage(playerid,Vermelho,"Vocк nao й o AutoClick!");
}
return 1;
}
if (strcmp(cmdtext,"/fbclick", true)==0){
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(strcmp(aname, "AutoClick", true) == 0){
MoveObject(PortaoClick,321.5, -1188.1999511719, 77.900001525879, 3.0, 0.0000, 0.0000, 218.0000);
SendClientMessage(playerid,0x607840AA, "Atй Logo AutoClick!");
return 1;
} else {
SendClientMessage(playerid,Vermelho,"Vocк nao й o AutoClick!");
}
return 1;
}
Erros:
Код:
C:\Users\GUILHERME\Desktop\PortaoClick.pwn(24) : error 017: undefined symbol "file"
C:\Users\GUILHERME\Desktop\PortaoClick.pwn(24) : error 017: undefined symbol "file"
C:\Users\GUILHERME\Desktop\PortaoClick.pwn(24) : error 029: invalid expression, assumed zero
C:\Users\GUILHERME\Desktop\PortaoClick.pwn(24) : fatal error 107: too many error messages on one line



Re: Portao de CMD - Kuddy - 17.04.2013

Faltou definir file.
Coloque em todos os comandos que deram esse erro: (topo)
pawn Код:
new file[64];



Re: Portao de CMD - AutoClick - 17.04.2013

Consegui , Obrigado.