09.04.2009, 22:30
I don't know if it's causing the problems but the return 1 is in the wrong place I think.. and the indentation isn't very good.. What exactly is wrong with it?
My only other guess is that the PlayerToPoint is malfunctioning.
pawn Код:
if(strcmp(cmd, "/buylicense flying", true)== 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0,playerid, 369.4747,186.4138,1008.3893))
{
SendClientMessage(playerid, COLOR_YELLOW, "kupio si licencu za letenje");
GivePlayerMoney(playerid, - 20000);
PlayerInfo[playerid][pFlyLic] = 0;
}
}
return 1;
}