[HELP]Syntax Error.
#3

Quote:
Originally Posted by JamesC
Посмотреть сообщение
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);
C:\Users\Vyom\Desktop\SA-MP 3d\gamemodes\mortals.pwn(17479) : error 017: undefined symbol "playerid"
Reply


Messages In This Thread
[HELP]Syntax Error. - by Ronaldo_raul™ - 25.02.2012, 06:35
Re: [HELP]Syntax Error. - by JamesC - 25.02.2012, 07:36
Re: [HELP]Syntax Error. - by Ronaldo_raul™ - 25.02.2012, 07:46
Re: [HELP]Syntax Error. - by T0pAz - 25.02.2012, 07:53
Re: [HELP]Syntax Error. - by Ronaldo_raul™ - 25.02.2012, 07:58
Re: [HELP]Syntax Error. - by T0pAz - 25.02.2012, 08:04
Re: [HELP]Syntax Error. - by emokidx - 25.02.2012, 08:07

Forum Jump:


Users browsing this thread: 1 Guest(s)