array must be indexed prob
#8

same error same mistake, you should use GetPlayerName if you know player id, use the function i gave you find id by IsThisNameOnline which will return the ID, then use it to get player name for example

pawn Code:
new targetid = IsThisNameOnline(params);

if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, "This Player is not online");
new pname[MAX_PLAYER_NAME];
GetPlayerName(targetid, pname, sizeof(pname));
Reply


Messages In This Thread
array must be indexed prob - by PoniStar - 31.10.2018, 17:14
Re: array must be indexed prob - by v1k1nG - 31.10.2018, 17:17
Re: array must be indexed prob - by TheToretto - 31.10.2018, 17:22
Re: array must be indexed prob - by PoniStar - 31.10.2018, 17:43
Re: array must be indexed prob - by PoniStar - 31.10.2018, 17:50
Re: array must be indexed prob - by ReD_HunTeR - 31.10.2018, 17:54
Re: array must be indexed prob - by PoniStar - 31.10.2018, 17:57
Re: array must be indexed prob - by ReD_HunTeR - 31.10.2018, 18:00
Re: array must be indexed prob - by PoniStar - 31.10.2018, 18:18
Re: array must be indexed prob - by TheToretto - 31.10.2018, 18:25
Re: array must be indexed prob - by PoniStar - 31.10.2018, 19:10

Forum Jump:


Users browsing this thread: 1 Guest(s)