ZCMD and sscanf won't work for me :(
#1

i wonder if i'm wrong in the script or if the probleme come from my samp if i'm wrong correct me please
here is the pawn code ofcorse with
#include <zcmd>
#include <sscanf2>
// i will make a kick command for test ( i already did that and it did not work )
Код:
CMD:kick(playerid, params[])
{
    new kickedid, kickerid, kickedn[MAX_PLAYER_NAME+128], kickern[MAX_PLAYER_NAME+128], reason[128],      kickmessage[128];
    GetPlayerName(playerid, kickern, sizeof(kickern));
    GetPlayerName(playerid, kickedn, sizeof(kickedn));
    if (sscanf(params, "us", kickedid, reason)) return SendClientMessage(playerid, 0xFF0000FF, "KICK: /kick (id) (reason)");
    format(kickmessage, sizeof(kickmessage), "le joueur %s (ID:%d) vient d'кtre kickй par %s (ID:%d) || raison:  %s", kickedn, kickedid, kickern, kickerid,reason);
    SendClientMessageToAll(0xFF3900FF, kickmessage);
    Kick(kickedid);
    return 1;
}
Reply


Messages In This Thread
ZCMD and sscanf won't work for me :( - by MrWakeUp - 21.06.2013, 21:36
Re: ZCMD and sscanf won't work for me :( - by SomebodyAndMe - 21.06.2013, 22:21
Re: ZCMD and sscanf won't work for me :( - by DaTa[X] - 21.06.2013, 22:23
Re: ZCMD and sscanf won't work for me :( - by MrWakeUp - 21.06.2013, 22:44

Forum Jump:


Users browsing this thread: 1 Guest(s)