public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys==KEY_SECONDARY_ATTACK)) // Key ( F / Enter )
{
cmd_agls(playerid, "");
cmd_agsf(playerid, "");
cmd_aglv(playerid, "");
cmd_sag(playerid, "");
}
return 1;
}
C:\Users\Fernando\Desktop\Construindo\filterscripts\profis.pwn(1861) : warning 209: function "cmd_agls" should return a value C:\Users\Fernando\Desktop\Construindo\filterscripts\profis.pwn(1872) : warning 209: function "cmd_agsf" should return a value C:\Users\Fernando\Desktop\Construindo\filterscripts\profis.pwn(1883) : warning 209: function "cmd_aglv" should return a value C:\Users\Fernando\Desktop\Construindo\filterscripts\profis.pwn(1927) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Warnings.
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys==KEY_SECONDARY_ATTACK)) // Key ( F / Enter )
{
cmd_agls(playerid);
cmd_agsf(playerid);
cmd_aglv(playerid);
cmd_sag(playerid);
}
return 1;
}
Tente:
pawn Код:
|
C:\Users\Fernando\Desktop\Construindo\filterscripts\profis.pwn(1861) : warning 209: function "cmd_agls" should return a value C:\Users\Fernando\Desktop\Construindo\filterscripts\profis.pwn(1872) : warning 209: function "cmd_agsf" should return a value C:\Users\Fernando\Desktop\Construindo\filterscripts\profis.pwn(1883) : warning 209: function "cmd_aglv" should return a value C:\Users\Fernando\Desktop\Construindo\filterscripts\profis.pwn(1924) : warning 202: number of arguments does not match definition C:\Users\Fernando\Desktop\Construindo\filterscripts\profis.pwn(1925) : warning 202: number of arguments does not match definition C:\Users\Fernando\Desktop\Construindo\filterscripts\profis.pwn(1926) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Warnings.
CMD:comando(playerid)
{
// o que o comando deve fazer.
}
CMD:comando(playerid)
{
// o que o comando deve fazer.
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys==KEY_SECONDARY_ATTACK)) // Key ( F / Enter )
{
if(IsPlayerInRangeOfPoint(playerid, raio, X, Y, Z))
{
cmd_agls(playerid, "");
}
else if(IsPlayerInRangeOfPoint(playerid, raio, X, Y, Z))
{
cmd_agsf(playerid, "");
}
else if(IsPlayerInRangeOfPoint(playerid, raio, X, Y, Z))
{
cmd_aglv(playerid, "");
}
else if(IsPlayerInRangeOfPoint(playerid, raio, X, Y, Z))
{
cmd_sag(playerid, "");
}
}
return 1;
}
CMD:ajkl(p) {
SendClientMessage(p,-1, "O beck estб queimando, fumaзa sobe, eu tenho a impressгo de estar ouvindo vozes");
return 1; // Precisa retornar um valor
}
// Chamando o comando.
cmd_ajkl(playerid);
CMD:ajkl(p, pr[]) {
SendClientMessage(p,-1, pr);
return 1; // Precisa retornar um valor
}
// Chamando o comando.
cmd_ajkl(playerid, "O beck estб queimando, fumaзa sobe, eu tenho a impressгo de estar ouvindo vozes");