26.04.2012, 17:42
Hi, i have the command /buydriving, for buy a driving license, but isnt work:
What's wrong?
I was at this coordonates and nothing happened.
When I type /buydriving nothing appear on the chat .
WTF?
Код:
if(strcmp(cmd, "/buydriving", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(3.0,playerid,1412.3163,-1701.7324,13.5395)) { if(PlayerInfo[playerid][pCarLic] == 0) { if(GetPlayerMoney(playerid) < 5000) { SendClientMessage(playerid, COLOR_GREY, "You don't have enough money for a driving license"); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "You bought a driving License for $5000"); SafeGivePlayerMoney(playerid, - 5000); PlayerInfo[playerid][pCarLic] = 1; OnPlayerUpdate(playerid); } } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, " You already own a driving license"); return 1; } } } return 1; }
I was at this coordonates and nothing happened.
When I type /buydriving nothing appear on the chat .
WTF?