08.04.2011, 18:20
Hola Amigos necesito un comando para los skins dejo ejemplos en img



Espero me Ayuden 



if(strcmp(cmd, "/skin", true) == 0)
{
new SkinId, string[128];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, Amarillo, "Usa: /Skin [Skin Id]"); // Cambia amarillo por un color xD
return 1;
}
SetPlayerSkin(playerid, SkinId);
format(string, sizeof(string), "Skin '%d' Cambiado !", SkinId);
SendClientMessage(playerid,Amarillo,string); // Cambia amarillo por un color xD
return 1;
}
#define Amarillo 0xFFEF26FF
// En OnPlayerCommandText
new cmd[128];
new tmp[128];
new idx;
Bueno por empezar, los codigos de pawno ponelos entre [ pawn] [ /pawn] (sin dejar espacios).
Luego te dije que el amarillo lo definieras a tu color, el amarillo definilo asi: Arriba de todo en los colores .. define: pawn Код:
pawn Код:
|
C:\Users\Juan Sebastiбn\Documents\otros\server\gamemodes\revgam.pwn(5101) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
new cmd[256];
new tmp[256];