[Ajuda] Aviso 202: number of arguments does not match definition
#1

Deve ser um erro bбsico, mas o meu Pawn Compiler diz que as linhas do AddPlayerClass estгo todas com um Warning que eu nгo entendo..
Код:
RStyle.pwn(27) : warning 202: number of arguments does not match definition
RStyle.pwn(28) : warning 202: number of arguments does not match definition
RStyle.pwn(29) : warning 202: number of arguments does not match definition
RStyle.pwn(30) : warning 202: number of arguments does not match definition
RStyle.pwn(31) : warning 202: number of arguments does not match definition
RStyle.pwn(32) : warning 202: number of arguments does not match definition
RStyle.pwn(33) : warning 202: number of arguments does not match definition
RStyle.pwn(34) : warning 202: number of arguments does not match definition
RStyle.pwn(35) : warning 202: number of arguments does not match definition
RStyle.pwn(36) : warning 202: number of arguments does not match definition
RStyle.pwn(37) : warning 202: number of arguments does not match definition
RStyle.pwn(38) : warning 202: number of arguments does not match definition
RStyle.pwn(39) : warning 202: number of arguments does not match definition
RStyle.pwn(40) : warning 202: number of arguments does not match definition
RStyle.pwn(41) : warning 202: number of arguments does not match definition
RStyle.pwn(42) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


16 Warnings.
Код:
public OnGameModeInit()
{
	SetGameModeText("[REC•]ISC Promotional Video");
	
	//Cуdigos Uteis.
	UsePlayerPedAnims();
	iscgate = CreateObject(980,-2120.7000000,449.3999900,36.9000000,0.0000000,0.0000000,0.0000000);
	
	//Skins disponнveis
	AddPlayerClass(299,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(295,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(288,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(287,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(286,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(285,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(284,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(283,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(281,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(280,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(279,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(278,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(276,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(275,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
	AddPlayerClass(274,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);
		return 1;
}
Deve ser um erro bбsico, talvez, mas eu realmente preciso de ajuda.
Reply
#2

A funзгo AddPlayerClass possui 11 argumentos e o seu estб com 10.

pawn Код:
AddPlayerClass(276,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0,0);
Faзa como no cуdigo acima, adicione um ',0' no final.
Reply
#3

Amigo, me explica outra coisa tambйm, porque quando eu coloco o CreateObject, no servidor os objetos nгo aparecem, mas eu criei um FilterScript com o CreateObject, no mesmo mapa, e estб aparecendo no servidor?

Tambйm, eu tentei usar o Streamer do Incognito, mas o console estб dando o Erro 19: File or Function not found. O problema й que o Include e o Plugin "streamer" estгo nas pastas adequadas.

Eu nгo acho onde muda de "11" para "10", pode me mostrar, por favor?
Reply
#4

Quote:
Originally Posted by Captain737
Посмотреть сообщение
Amigo, me explica outra coisa tambйm, porque quando eu coloco o CreateObject, no servidor os objetos nгo aparecem, mas eu criei um FilterScript com o CreateObject, no mesmo mapa, e estб aparecendo no servidor?

Tambйm, eu tentei usar o Streamer do Incognito, mas o console estб dando o Erro 19: File or Function not found. O problema й que o Include e o Plugin "streamer" estгo nas pastas adequadas.
Vocк adicionou o plugin no server.cfg?

Quote:
Originally Posted by Captain737
Посмотреть сообщение
Eu nгo acho onde muda de "11" para "10", pode me mostrar, por favor?
pawn Код:
AddPlayerClass(276,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0);//10 parametros
AddPlayerClass(276,214.3835, 1915.0903, 16.9789,0,0,0,0,0,0,0);//11 parametros
Reply
#5

Amigo, sim, ele estб no server.cfg

Outra dъvida kk, Como eu adiciono uma mensagem de erro quando o player errar um cуdigo? Eu estou fazendo meu primeiro GameMode, beeem bбsico, pra uns amigos meus que sгo do MTA pra gravar um vнdeo comigo no servidor.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)