*** Not a descriptive title - ******.
#4

pawn Код:
dcmd_getname(playerid,params[])
{
new id;
new string[64];
new name[MAX_PLAYER_NAME];
if(!strlen(params)) return SendClientMessage(playerid,0xFFFF00AA,"USAGE: /Getname [playerid]");
{
else if (!IsPlayerConnected(id)) return SendClientMessage(playerid,0xFFFF00AA,"Player is not connected");
else
{
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"PlayerName is: %s[ID:%d]",name,id);
SendClientMessage(playerid,0xFFFF00AA,string);
}
}
return 1;
}
u had a problem with the return 1; location

FIXED
Reply


Messages In This Thread
*** Not a descriptive title - ******. - by Morkano - 25.11.2012, 12:04
Re: Problem - by GoldZoroGrab - 25.11.2012, 12:08
Re: Problem - by Morkano - 25.11.2012, 12:15
Re: Problem - by GoldZoroGrab - 25.11.2012, 12:19
AW: Problem - by Skimmer - 25.11.2012, 12:21
Re: Problem - by Morkano - 25.11.2012, 12:24
AW: Problem - by Skimmer - 25.11.2012, 12:27

Forum Jump:


Users browsing this thread: 2 Guest(s)