Format returning SERVER:UNKNOWN COMMAND
#1

Hello,
I m experiencing problem while trying to divide UserStats[targetid][WeaponHitsOP] with UserStats[targetid][MissedWeaponHits]

PHP Code:
    format(stringsizeof(string), "{FF0000}[STATS] {FFFFFF}Kills: %d, Deaths: %d, Ratio: %0.2f, Hit accuracy: %d"UserStats[targetid][Kills],UserStats[targetid][Deaths],floatdiv(UserStats[targetid][Kills], UserStats[targetid][Deaths]), UserStats[targetid][WeaponHitsOP]/UserStats[targetid][MissedWeaponHits]);
    
SendClientMessage(playeridCOLOR_WHITEstring); 
Command would return "SERVER: Unknown command" error. Why?
If I remove that part of code, or just the accuracy, everything would be fine.
Reply


Messages In This Thread
Format returning SERVER:UNKNOWN COMMAND - by kovac - 21.06.2018, 02:40
Re: Format returning SERVER:UNKNOWN COMMAND - by AgusZ - 21.06.2018, 02:50
Re: Format returning SERVER:UNKNOWN COMMAND - by kovac - 21.06.2018, 02:53
Re: Format returning SERVER:UNKNOWN COMMAND - by Shadow0707 - 21.06.2018, 06:40
Re: Format returning SERVER:UNKNOWN COMMAND - by RoboN1X - 21.06.2018, 06:45

Forum Jump:


Users browsing this thread: 1 Guest(s)