[Duda] Restar valor
#1

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.
Reply
#2

DatosPJ[playerid][pPiezas] -= 15;
Reply
#3

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 >.<
Reply
#4

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
Reply
#5

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

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);
Reply
#7

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.
Reply
#8

Cambia el SendClientMessageEx de NearMsg a SendClientMessage.
Reply
#9

Ya, muchas gracias.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)