25.02.2012, 07:36
You forgot to parse a variable to the SName1 function. Also, it's a function so you have to call it suffixed with parenthesis. Also, SName1 is a terrible name for a function.
pawn Код:
// GetName function
stock GetName(playerid) {
new szName[MAX_PLAYER_NAME];
GetPlayerName(playerid, szName, MAX_PLAYER_NAME);
return szName;
}
// Format code
format(string,sizeof(string),"[%d.%d.%d] [%d:%d:%d]: %s : %s\r\n",day,month,year,hour,minute,second,GetName(playerid),text);