[Ayuda] Mysql
#7

Una pregunta mas...

pawn Код:
CMD:claninvite(playerid, params[])
{
    new id;
    if(pInfo[playerid][clanexists] == 0) return SendClientMessage(playerid, red, "This clan doesn't exist.");
    if(pInfo[playerid][clanleader] != 1) return SendClientMessage(playerid, red, "You need to be a clan leader.");
    if(sscanf( params, "u", id)) return SendClientMessage(playerid, -1, "Usage: /claninvite [ id / playername ]");
   
    format(ssstring, SOS, "%s has requested you to join his clan: %s", pInfo[playerid][pName], pInfo[playerid][clanname]);
    ShowPlayerDialog(playerid, DIALOG_JOINEDCLAN, DIALOG_STYLE_TEXT, "Clan invitation", ssstring, "Accept", "Decline");
   
    new query[250];
    Query("UPDATE `playerinfo` SET `inclan` = 1 WHERE `id`='%i'",pInfo[playerid][dbid]);
    mysql_query( query );
    format(ssstring, SOS, "%s has joined the clan!", pInfo[id][pName], pInfo[playerid][clanname]);
    SendClientMessageToClan(ORANGE, ssstring);
    pInfo[id][clanmember] = 1;
   
    return 1;
}
Como puedo hacer, para que en ondialogresponse, se le asigne al especificado ID y no a player ID, la verdad me confundi :c!
Reply


Messages In This Thread
[Ayuda] Mysql - by Strier - 25.08.2013, 00:16
Re: [Ayuda] Mysql - by Strier - 25.08.2013, 00:23
Respuesta: [Ayuda] Mysql - by oOFotherOo - 25.08.2013, 00:31
Respuesta: [Ayuda] Mysql - by DesingMyCry - 25.08.2013, 00:52
Re: [Ayuda] Mysql - by Strier - 25.08.2013, 01:35
Respuesta: [Ayuda] Mysql - by DesingMyCry - 25.08.2013, 01:49
Re: [Ayuda] Mysql - by Strier - 25.08.2013, 02:24
Respuesta: [Ayuda] Mysql - by DesingMyCry - 25.08.2013, 02:44
Re: [Ayuda] Mysql - by Strier - 25.08.2013, 02:47
Respuesta: [Ayuda] Mysql - by DesingMyCry - 25.08.2013, 04:35

Forum Jump:


Users browsing this thread: 1 Guest(s)