25.04.2014, 17:38
I made this but it gives errors that already defined name , already defined string
[code]
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);
new name[MAX_PLAYER_NAME+1], string[50+MAX_PLAYER_NAME+1];
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);
new name[MAX_PLAYER_NAME+1], string[50+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[HACK] {FFFFFF}You Have Been Given Permission By %s .", name);
SendClientMessage(targetid, 0x2EFF83FF, string);
}
[code]
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);
new name[MAX_PLAYER_NAME+1], string[50+MAX_PLAYER_NAME+1];
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);
new name[MAX_PLAYER_NAME+1], string[50+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[HACK] {FFFFFF}You Have Been Given Permission By %s .", name);
SendClientMessage(targetid, 0x2EFF83FF, string);
}