help fast please!
#1

Hello.
When i type /getmfa to get my facing angle, It sends me a message "[ADMIN] Y" instead of "[ADMIN] 180 or 90.."
Can someone tell me what's wrong in this ?

PHP код:
CMD:getmfa(playerid, params[])
{
        if(
AdminLevel[playerid] < 4) return SCM(playerid,COLOR_WHITE,"{FF0000}[ERROR]{FFFFFF} You do not have the correct admin level for this command.");
        new 
Float:Angle, string[26];
        
GetPlayerFacingAngle(playerid, Angle);
        
format(string, sizeof(string), "{FF0770}[ADMIN]{FFFFFF} Your facing angle is: %0.2f", Angle);
        
SendClientMessage(playerid, 0xFFFFFFFF, string);
        return 
1;
} 
Reply
#2

The string size is too small
use
new string[70]
Reply
#3

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
The string size is too small
use
new string[70]
Well thank you
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)