array must be indexed
#4

Quote:
Originally Posted by Lynn
Посмотреть сообщение
if(strlen(inputtext) == playerid)
/votekick

-> Input "player" into the dialog.

pawn Код:
if(6 == playerid)
---------------------------------------------------------------------------------------------------

pawn Код:
if(!IsNumeric(inputtext)) return 1;

new id = strval(inputtext);
if(!IsPlayerConnected(id)) return 1;
if(strval(inputtext) == playerid) ...

stock IsNumeric(const string[]) return !sscanf(string, "{d}");
Reply


Messages In This Thread
array must be indexed - by PowerF - 09.08.2015, 07:11
Re: array must be indexed - by Lynn - 09.08.2015, 07:14
Re: array must be indexed - by muhsah007 - 09.08.2015, 07:14
Re: array must be indexed - by SickAttack - 09.08.2015, 07:23
Re: array must be indexed - by MarvinPWN - 09.08.2015, 08:20

Forum Jump:


Users browsing this thread: 1 Guest(s)