[Ajuda] erro no comando
#1

eae galera estou tentando fazer um comando de mudar skin sу que ta dando esta erro aki

Quote:

C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(334) : error 035: argument type mismatch (argument 2)
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(342) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

linhas

Quote:

cmd(skin298,playerid,params[])
{
SetPlayerSkin(playerid,29;//298
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

cmd(skin299,playerid,params[])
{

SetPlayerSkin(playerid,299);//299
SendClientMessage(playerid, #FF0000, "vocк trocou skin");
return 1;
}

tem como me ajudar?
Reply
#2

pawn Код:
cmd:skin298(playerid,params[])
{
    SetPlayerSkin(playerid, 29);
    SendClientMessage(playerid, 0xFF0000FF, "vocк trocou de skin");
    return 1;
}

cmd:skin299(playerid,params[])
{
    SetPlayerSkin(playerid, 299);
    SendClientMessage(playerid, 0xFF0000FF, "vocк trocou skin");
    return 1;
}
Reply
#3

Quote:
Originally Posted by ExPLORE
Посмотреть сообщение
pawn Код:
cmd:skin298(playerid,params[])
{
    SetPlayerSkin(playerid, 29);
    SendClientMessage(playerid, 0xFF0000FF, "vocк trocou de skin");
    return 1;
}

cmd:skin299(playerid,params[])
{
    SetPlayerSkin(playerid, 299);
    SendClientMessage(playerid, 0xFF0000FF, "vocк trocou skin");
    return 1;
}
de cmd: para CMD:
Reply
#4

Sу corrigindo uma linha do amigo acima
pawn Код:
CMD:skin298(playerid,params[])
{
    SetPlayerSkin(playerid, 298); //tava 29 =D
    SendClientMessage(playerid, 0xFF0000FF, "vocк trocou de skin");
    return 1;
}
Reply
#5

vlw a vcs deu certo

+rep
Reply
#6

manos dps que eu adcionei os outros comandos deu 26 erros

vou deixar aki

Quote:

CMDkin0,playerid,params[])
{
SetPlayerSkin(playerid,0); //0
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

CMDkin1,playerid,params[]) //1
{
SetPlayerSkin(playerid,1);
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

CMDkin2,playerid,params[])//2
{
SetPlayerSkin(playerid,2);
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

CMDkin3,playerid,params[])
{
SetPlayerSkin(playerid,3);//3
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

CMDkin4,playerid,params[])
{
SetPlayerSkin(playerid,4);//4
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

CMDkin5,playerid,params[])
{
SetPlayerSkin(playerid,5);//5
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

CMDkin6,playerid,params[])
{
SetPlayerSkin(playerid,6);//6
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

CMDkin7,playerid,params[])
{
SetPlayerSkin(playerid,7);//7
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

CMDkin8,playerid,params[])
{
SetPlayerSkin(playerid,;//8
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

CMDkin9,playerid,params[])
{
SetPlayerSkin(playerid,9);//9
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

CMDkin10,playerid,params[])
{
SetPlayerSkin(playerid,10);//10
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

CMDkin11,playerid,params[])
{
SetPlayerSkin(playerid,11);//11
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

CMDkin12,playerid,params[])
{
SetPlayerSkin(playerid,12);//12
SendClientMessage(playerid, #FF0000, "vocк trocou de skin");
return 1;
}

tem como me ajudar?



os erros aki

Quote:

C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(331) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(335) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(33 : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(342) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(345) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(349) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(352) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(356) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(359) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(363) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(366) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(370) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(373) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(377) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(380) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(384) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(387) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(391) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(394) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(39 : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(401) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(405) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(40 : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(412) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(415) : error 010: invalid function or declaration
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(419) : error 010: invalid function or declaration

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


26 Errors.

Reply
#7

Esses comandos sгo para mudar de skin certo? Entгo remova todos esses seus comandos e coloque esse:

pawn Код:
CMD:skin(playerid, params[])
{
   new skin, string[128];
   if(isnull(params)) return SendClientMessage(playerid, Vermelho, "[ x ] Uso Correto: /Skin [ID] ");
   if(skin > 299 || skin < 0) return SendClientMessage(playerid,Vermelho, "[ x ] ID's de Skin{FFFFFF}0 a 299");
   SetPlayerSkin(playerid, skin);
   SendClientMessage(playerid,AMARELO, "[ > ] Vocк alterou sua skin com sucesso!");
   format(string, sizeof string, "[ > ] O ID da sua skin atual й: {FFFFFF}%d", GetPlayerSkin(playerid));
   SendClientMessage(playerid, -1, string);
   return 1;
}

#Edit

Sу para explicar esses erros nos comandos

pawn Код:
CMD:skin2,playerid,params[])// Aqui o correto seria: CMD:skin2(playerid, params[])
 {
    SetPlayerSkin(playerid,2);
    SendClientMessage(playerid, #FF0000,"vocк trocou de skin");//A cor estб incorreta, o certo seria: 0xFF0000FF
     return 1;
 }
Reply
#8

sim й de skin

seu cmd deu esses erros

Quote:

C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(334) : error 035: argument type mismatch (argument 2)
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(335) : error 035: argument type mismatch (argument 2)
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(337) : error 035: argument type mismatch (argument 2)
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(33 : error 017: undefined symbol "dstring"
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(33 : error 017: undefined symbol "dstring"
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(339) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.

linhas
Quote:

if(sscanf(params, "d", skin)) return SendClientMessage(playerid, #FF0000, "[ x ] Uso Correto: /Skin [ID] ");
if(skin > 299 || skin < 0) return SendClientMessage(playerid,#FF0000, "[ x ] ID's de Skin{FFFFFF}0 a 299");
SetPlayerSkin(playerid, skin);
SendClientMessage(playerid,#FFFF00, "[ > ] Vocк alterou sua skin com sucesso!");
format(dstring, sizeof dstring, "[ > ] O ID da sua skin atual й: {FFFFFF}%d", GetPlayerSkin(playerid));
SendClientMessage(playerid,#FFFF00, dstring);

ate tentei consertar mais nгo consegui
Reply
#9

Coloque o comando novamente, eu editei lб em cima.

@Edit

Cara vocк estб errando onde coloca as cores:

Forma errada: #FF0000

Forma correta: 0xFF0000FF

vocк tira o "#" Coloca "0x" no comeзo e no fim "FF"
Reply
#10

ei mano sу deu uma coisa que eu nгo sei

as cores eu coloquei as que eu define

Quote:

#define amarelo #FFFF00
#define vermelho #FF0000

mais sу que esta dando esse erro aki

Quote:

C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(334) : error 017: undefined symbol "vermelho"
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(335) : error 017: undefined symbol "vermelho"
C:\Users\Alisson\Desktop\Backup\Documentos e importantes\Misael\samp03z_svr_R1_win32\gamemodes\ game.pwn(337) : error 017: undefined symbol "amarelo"

eu nгo sei por que esta dando o erro pois esta definido corretamente "eu acho" se puder me ajudar eu agradeзo





editeeee

compilo direito so que quando entro no servidor e troco a skin vai para 0 e quando tento mudar para outra continua na id 0

exemplo eu mudo para skin 98 e vai para a id 0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)