AKA CMD
#1

Suprise. It's me again...

What the hell is the problem with this command, I'm geting some errors in format line

Код:
error 029: invalid expression, assumed zero
 error 017: undefined symbol "name"
error 001: expected token: ";", but found "return"
 fatal error 107: too many error messages on one line
Код:
CMD:aka(playerid,params[])
{
	new player1, playername[MAX_PLAYER_NAME], str[128], ip[16];
	player1 = strval(params);
 	if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
 	{
	  	GetPlayerIp(player1, ip, sizeof(ip));
		format(str,sizeof(str),"|- %s's AKA -|", GetName(player1));
        SendClientMessage(playerid,-1,str);
	    format(str,sizeof(str), "Id: %d Ip: %s Names: %s", GetName(player1), ip, INI_Int("/Korisnici/%s.ini",ip));
        SendClientMessage(playerid, -1, str);
	}
	else return SendClientMessage(playerid, -1, "Player is not connected or is yourself");
	return 1;
}
Reply


Messages In This Thread
AKA CMD - by Hunud - 09.04.2018, 15:37
Re: AKA CMD - by MattL019 - 09.04.2018, 17:19
Re: AKA CMD - by CutX - 09.04.2018, 17:22
Re: AKA CMD - by Hunud - 09.04.2018, 17:46

Forum Jump:


Users browsing this thread: 1 Guest(s)