09.05.2013, 17:02
Quote:
The IP won't showup because you're using the wrong specifier, it's an integer so use %d or %i instead of %s.
|
Try using a stock, also without the "_"
pawn Код:
stock GetName(playerid)
{
new Pnamer[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof Pnamer);
format(Pnamer,sizeof Pnamer,"%s",Pnamer);
printf("name: %s",Pnamer);//debug
return Pnamer;
}
stock GetIP(playerid)
{
new IP[16];
GetPlayerIp(playerid, IP, 16);
format(IP,sizeof IP,"%s",IP);
printf("IP: %s",IP);//debug
return IP;
}