SendClientMessageEx, ShowPlayerDialogEx, SendClientMessageToAllEx
#1

Base SQLite Script
Created by: Norrin
--------------------------------------------------------------
Hola, estoy usando una base sqlite de Norrin, y encontrй estos cуdigos que no se para que sirven.
Alguien podrнa explicarme para sirven, si es que sirven.
--------------------------------------------------------------
Hi, I'm using a sqlite base from Norrin, and I found these codes that I do not know what they are for.
Someone could explain to me if they serve.
--------------------------------------------------------------

pawn Код:
stock SendClientMessageEx(playerid, color, message[])
{
    return SendClientMessage(playerid, color, message);
}

stock SendClientMessageToAllEx(color, message[])
{
    return SendClientMessageToAll(color, message);
}

stock ShowPlayerDialogEx(playerid, dialogid, style, caption[], info[], button1[], button2[])
{
    Datos[playerid][CurrentDialog] = dialogid;
    if(Datos[playerid][CurrentDialog] == dialogid) return ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
    return 1;
}
--------------------------------------------------------------
PD: Alguien sabe que paso con la secciуn espaсola.
--------------------------------------------------------------
PD: Someone knows what happened to the Spanish team.

•••••••••••••

Aguante el traductor de 6OO6L3.
Reply
#2

All of them are made so that you don't have to use format + SendClientMessage when formatting a message.

In other words, the former becomes the latter:
pawn Код:
new name[MAX_PLAYER_NAME], string[23 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));

    format(string, sizeof(string), "%s has joined the server", name);
    SendClientMessageToAll(0xFFFF00FF, string);
   
    ======
     
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageEx(playerid, -1, "%s has joined the server", name);
Reply
#3

No, they're just like a macro definition of repeat this, it's useless.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)