problem with format
#1

This in the public
PHP код:
public OnPlayerText(playeridtext[])
{
    new 
Text[144];
    
format(String,sizeof(String),"%s says: %s",NickName,Text);
    
SendClientMessage(playerid,-1,String);
    return 
1;

This is the error line
PHP код:
format(String,sizeof(String),"%s says: %s",NickName,Text); 
This is the error:
PHP код:
error 076syntax error in the expression, or invalid function call 
This is the stock of 'NickName':
PHP код:
stock NickName(playerid)
{
new 
nick[MAX_STRING];
GetPlayerName(playeridnicksizeof(nick));
nick strreplace("_"" "nick);
return 
nick;

Reply


Messages In This Thread
problem with format - by Lirbo - 17.04.2014, 20:55
Re: problem with format - by mrkiller90 - 17.04.2014, 20:56
Re: problem with format - by Brandon_More - 17.04.2014, 20:57
Re: problem with format - by Firewire - 17.04.2014, 20:57
Re: problem with format - by Lirbo - 17.04.2014, 22:00

Forum Jump:


Users browsing this thread: 1 Guest(s)