help fast please! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help fast please! (
/showthread.php?tid=559416)
help fast please! -
aCloudy - 23.01.2015
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;
}
Re: help fast please! -
BroZeus - 23.01.2015
The string size is too small
use
new string[70]
Re: help fast please! -
aCloudy - 23.01.2015
Quote:
Originally Posted by BroZeus
The string size is too small
use
new string[70]
|
Well thank you