15.10.2013, 16:26
hello i have this code and want the cmd saved in server_log but i got this errors
Код:
printf("(CMD) %s: %s",name_, cmdtext);
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
new
msg_[ 64 ],
name_[ MAX_PLAYER_NAME ]
;
GetPlayerName( playerid, name_, MAX_PLAYER_NAME );
format( msg_, sizeof( msg_ ), "(CMD) %s: %s", name_, cmdtext );
for(new i = 0; i < MAX_PLAYERS; i++ )
{
if( !IsPlayerConnected( i ) || !IsPlayerAdmin( i ) ) continue;
SendClientMessage( i, 0x754829AA, msg_ );
}
if( !success ) return 0;
return 1;
}
PHP код:
error 021: symbol already defined: "printf"



i thing ill leave this hard shit and back to samp as a player