a problem i cant find
#1

hey, i have a problem which i cant find in this code:

Код:
if (strcmp(cmd, "/fix", true)==0) {
       if(GetPlayerMoney(playerid) <= 100) {
	     SendClientMessage(playerid,BRIGHTRED,"=> You do not have enought money, you need $100 to fix your Vehicle.");
	     return 1; }
		 else {
		 if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
		 new VehicleID;
		 VehicleID=GetPlayerVehicleID(playerid);
		 GivePlayerMoney(playerid,-100);
		 SetVehicleHealth(VehicleID,100);
		 SendClientMessage(playerid,COLOR_YELLOW,"=> Vehicle Fixed.");
		 return 1; }
		 else {
		 SendClientMessage(playerid,BRIGHTRED,"=> You are not in a vehicle.");
		 return 1; } } }
am i just blind or something? but it makes my vehicle go on FIRE and it doesnt fix it. plz help?
Reply


Messages In This Thread
a problem i cant find - by [GF]sIdEkIcK - 13.07.2009, 15:20
Re: a problem i cant find - by Correlli - 13.07.2009, 15:21
Re: a problem i cant find - by [GF]sIdEkIcK - 13.07.2009, 15:23
Re: a problem i cant find - by Correlli - 13.07.2009, 15:23

Forum Jump:


Users browsing this thread: 1 Guest(s)