SA-MP Forums Archive
[Duda] Restar valor - 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: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Duda] Restar valor (/showthread.php?tid=529181)



[Duda] Restar valor - xTexTx - 31.07.2014

Hola, estuve haciendo un estilo de job de Fabricante de armas, pero no sй como hacer para restar 15 piezas al crear la 9mm.
DatosPJ[playerid][pPiezas]
їAlguna idea de como restarle 15 piezas utilizando esa?
Gracias de antemano.


Respuesta: [Duda] Restar valor - Zume - 31.07.2014

DatosPJ[playerid][pPiezas] -= 15;


Respuesta: [Duda] Restar valor - xTexTx - 31.07.2014

Gracias xDDDD te amo Zume.

EDIT: Zume, їte puedo hacer una pregunta mбs?
Como era para hacer que salga un mensaje solo a los jugadores cercanos?
SetChatBoubble?, me olvide >.<


Respuesta: [Duda] Restar valor - chusothe41 - 31.07.2014

Quote:
Originally Posted by xTexTx
Посмотреть сообщение
Gracias xDDDD te amo Zume.

EDIT: Zume, їte puedo hacer una pregunta mбs?
Como era para hacer que salga un mensaje solo a los jugadores cercanos?
SetChatBoubble?, me olvide >.<
En la carpeta Filterscripts tienes un ejemplo de Bubble Chat


Respuesta: [Duda] Restar valor - xTexTx - 31.07.2014

Pero tambiйn mi duda va a si Bubble Chat sirve para mandar mensaje como cuando utilizas /me en los servidores RP.


Respuesta: [Duda] Restar valor - Zume - 31.07.2014

pawn Код:
NearMsg(playerid, color, string[], Float: Distance)
{
    new  Float: nbCoords[3];
    GetPlayerPos(playerid, nbCoords[0], nbCoords[1], nbCoords[2]);
    foreach(Player, i)
    {
        if(IsPlayerInRangeOfPoint(i, Distance, nbCoords[0], nbCoords[1], nbCoords[2]) && (GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))) {SendClientMessage(i, color, string);}
    }
    return 1;
}
pawn Код:
new name[24], string[64];
GetPlayerName(playerid, name, 24);
format(string, sizeof(string), "%s es gay (un secreto para los que estбn cerca).", name);
NearMsg(playerid, -1, string,8.0);



Respuesta: [Duda] Restar valor - xTexTx - 01.08.2014

Quote:

C:\Documents and Settings\Administrador\Escritorio\Gamemode\gamemod es\Gamemode.pwn(667) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Administrador\Escritorio\Gamemode\gamemod es\Gamemode.pwn(661) : warning 203: symbol is never used: "color"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Me salta eso.


Respuesta: [Duda] Restar valor - Juance - 01.08.2014

Cambia el SendClientMessageEx de NearMsg a SendClientMessage.


Respuesta: [Duda] Restar valor - xTexTx - 01.08.2014

Ya, muchas gracias.