17.10.2014, 05:36
Код:
C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(183) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(183) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(183) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(183) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(188) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(188) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(191) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(191) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(196) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(196) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(199) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(199) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(203) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(203) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(203) : warning 202: number of arguments does not match definition C:\Users\Tronic\Desktop\NUEVO\gamemodes\NapsixRoleplay.pwn(203) : warning 202: number of arguments does not match definition
pawn Код:
CMD:makeadmin(playerid, params[])
{
new string[128];
if(Info[playerid][pAdmin] < 10) return NoAutorizado
new iLevel, iTarget;
if(sscanf(params, "ud", iTarget, iLevel)) return SendClientMessage(playerid, -1, "USO: /makeadmin [playerid] [Nivel]");
if(IsPlayerConnected(iTarget))
{
if(iLevel > 10)
{
format(string, sizeof(string), "[Napsix RP]: %s ha intentado dar un nivel de admin no permitido a %s", GetPlayerName(playerid), GetPlayerName(iTarget));
return 1;
}
if(Info[playerid][pAdmin] < iLevel)
{
format(string, sizeof(string), "El administrador %s te ha dado admin nivel: %d.", GetPlayerName(playerid), iLevel);
SendClientMessage(iTarget, -1, string);
format(string, sizeof(string), "Has dado admin nivel %d al jugador %s.", iLevel, GetPlayerName(iTarget));
SendClientMessage(playerid, -1, string);
}
else
{
format(string, sizeof(string), "El administrador %s te descendido a admin nivel %d.", GetPlayerName(iTarget), iLevel);
SendClientMessage(iTarget, -1, string);
format(string, sizeof(string), "Has descendido a %s a admin nivel %d", GetPlayerName(iTarget), iLevel);
SendClientMessage(playerid, -1, string);
}
Info[iTarget][pAdmin] = iLevel;
format(string, sizeof(string), "El administrador %s le diу admin nivel %d a: %s", GetPlayerName(playerid), iLevel, GetPlayerName(iTarget));
}
else SendClientMessage(playerid, -1, "Ese jugador no estб conectado.");
return 1;
}
pawn Код:
format(string, sizeof(string), "[Napsix RP]: %s ha intentado dar un nivel de admin no permitido a %s", GetPlayerName(playerid), GetPlayerName(iTarget));
pawn Код:
format(string, sizeof(string), "El administrador %s te ha dado admin nivel: %d.", GetPlayerName(playerid), iLevel);
pawn Код:
format(string, sizeof(string), "Has dado admin nivel %d al jugador %s.", iLevel, GetPlayerName(iTarget));
pawn Код:
format(string, sizeof(string), "El administrador %s te descendido a admin nivel %d.", GetPlayerName(iTarget), iLevel);
pawn Код:
format(string, sizeof(string), "Has descendido a %s a admin nivel %d", GetPlayerName(iTarget), iLevel);
pawn Код:
format(string, sizeof(string), "El administrador %s le diу admin nivel %d a: %s", GetPlayerName(playerid), iLevel, GetPlayerName(iTarget));
P.S.: Ignore Language..