View Single Post
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 05-27-2020 , 14:37   Re: error 001: expected token: "(", but found "{"
Reply With Quote #2

What about this works fine with latest compile.

New Snytax:
PHP Code:
#include < sourcemod >

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart( )
{
    
float fTest];
    
fTest view_as<float>( { 0.00.00.0 } );
    
    
PrintToServer"%.1f, %.1f, %.1f"fTest], fTest], fTest] );

// Edit: this one works too

Old:
PHP Code:
float fTest] = { 0.00.00.0 }; 

Last edited by Kellan123; 05-30-2020 at 06:41. Reason: Tilex
Kellan123 is offline