03.08.2010, 10:31
Ok so im making very basic fight style.
As i went to test it out, the /fightstyles cmd works, but when i tipe the cmd /fightstyle 1 or 2,
it just throws me the massages if the /fightstyles cmd,
It doesnt throws me any kinds of errors but it doesnt works eighter.
If anyone could look at this please:
As i went to test it out, the /fightstyles cmd works, but when i tipe the cmd /fightstyle 1 or 2,
it just throws me the massages if the /fightstyles cmd,
It doesnt throws me any kinds of errors but it doesnt works eighter.
If anyone could look at this please:
pawn Код:
//=============================Fighting Style Help==============================
if (strcmp("/fightstyles", cmdtext, true, 5) ==0)
{
SendClientMessage(playerid,COLOR_YELLOW,"You can select your fight styles with the command /fightstyle <1-6>");
SendClientMessage(playerid,COLOR_YELLOW,"Availible Fight Styles:");
SendClientMessage(playerid,COLOR_YELLOW,"Boxing-1, Kung-Fu-2, Street Fingting-3, Grab-Kick-4, Elbow-4, Normal-5");
return 1;
}
//=============================Fighting Styles==================================
//Boxing
if (strcmp("/fightstyle 1", cmdtext, true, 5) ==0)
{
SetPlayerFightingStyle(playerid, 5);
SendClientMessage(playerid,COLOR_YELLOW,"You have selected the Boxing Fight Style!");
return 1;
}
//Kung-Fu
if (strcmp("/fightstyle 2", cmdtext, true, 5) ==0)
{
SetPlayerFightingStyle(playerid, 6);
SendClientMessage(playerid,COLOR_YELLOW,"You have selected the Kung-Fu Fight Style!");
return 1;
}