29.05.2015, 20:55
Quote:
recomendo que veja este tutorial de Enum https://sampforum.blast.hk/showthread.php?tid=318307
PHP код:
|
PHP код:
helpercmd.pwn(170) : error 032: array index out of bounds (variable "Player_Info")
helpercmd.pwn(187) : error 028: invalid subscript (not an array or too many subscripts): "pHelper"
helpercmd.pwn(187) : warning 215: expression has no effect
helpercmd.pwn(187) : error 001: expected token: ";", but found "]"
helpercmd.pwn(187) : error 029: invalid expression, assumed zero
helpercmd.pwn(187) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
PHP код:
CMD:kickh(playerid, params[])
{
if(Player_Info[playerid][pHelper] == 1)
{
new ID, Motivo[40], string[70];
if(sscanf(params, "ds", ID, Motivo)) return SendClientMessage(playerid, 0xFFFFFFAA, "Digite /kick ID Motivo");
format(string, sizeof(string), "Vocк foi kickado [ Motivo %s ]", Motivo);
SendClientMessage(ID, 0xFFFFFFAA, string);
Kick(ID);
}
return 1;
}
CMD:sethelper(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new ID;
if(sscanf(params, "d", ID)) return SendClientMessage(playerid, 0xFFFFFFAA, "Digite /sethelper ID");
pHelper[ID] = 1;
}
return 1;
}