Need Help With GetPlayerName
#3

Here, you defined strings and name twice

pawn Код:
if(hackm[targetid] == true)
{
    hackm[targetid] = false;
    new name[MAX_PLAYER_NAME+1], string[50+MAX_PLAYER_NAME+1];
    GetPlayerName(targetid, name, sizeof(name));
    format(string, sizeof(string), "[HACK] {FFFFFF}You Took Permission From %s .", name);
    SendClientMessage(playerid, 0x2EFF83FF, string);

    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "[HACK] {FFFFFF}You Permissions Taken By %s .", name);
    SendClientMessage(targetid, 0x2EFF83FF, string);
}
else if(hackm[targetid] == false)
{
    hackm[targetid] = true;
    new name[MAX_PLAYER_NAME+1], string[50+MAX_PLAYER_NAME+1];
    GetPlayerName(targetid, name, sizeof(name));
    format(string, sizeof(string), "[HACK] {FFFFFF}You Have Given Permission To %s .", name);
    SendClientMessage(playerid, 0x2EFF83FF, string);

    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "[HACK] {FFFFFF}You Have Been Given Permission By %s .", name);
    SendClientMessage(targetid, 0x2EFF83FF, string);
}
Reply


Messages In This Thread
Need Help With GetPlayerName - by Protonix - 25.04.2014, 17:38
Re: Need Help With GetPlayerName - by Stanford - 25.04.2014, 17:38
Re: Need Help With GetPlayerName - by Stanford - 25.04.2014, 17:41
Re: Need Help With GetPlayerName - by Konstantinos - 25.04.2014, 17:42
Re: Need Help With GetPlayerName - by Protonix - 25.04.2014, 17:43
Re: Need Help With GetPlayerName - by Protonix - 25.04.2014, 17:45
Re: Need Help With GetPlayerName - by Stanford - 25.04.2014, 17:45

Forum Jump:


Users browsing this thread: 3 Guest(s)