truck script
#7

hmm, now i've got an other problem. on every truck, the messages work now when you hop in. but when you type /buyprod in truck0, it will work, if you type it in truck 1-4, it wont work. here is the piece of script:
Код:
	if(!strcmp("/buyprod", cmdtext, true,9))
 	for(new i; i<sizeof(truck); i++)
 {
 	if(GetPlayerMoney(playerid)<=499)
 		return SendClientMessage(playerid,COLOR_RED,"You don't have $500");
  if(!PlayerToPoint(10.0,playerid,-1834.4691, 129.1151, 15.1171))
    return SendClientMessage(playerid, COLOR_RED, "You have to be at the truck station");
  if(!IsPlayerInVehicle(playerid, truck[i]))
    return SendClientMessage(playerid, COLOR_RED, "You have to be in a truck!");
  GivePlayerMoney(playerid,-500);
  SendClientMessage(playerid, COLOR_GREEN, "You have bought products for $500.");
  return AttachTrailerToVehicle(trailer[i],truck[i]);
 	}
 	return 0;
}
i've got everything good defined, so the problem has to be in here..
Reply


Messages In This Thread
truck script - by thuron - 11.03.2009, 09:28
Re: truck script - by Dujma - 11.03.2009, 09:40
Re: truck script - by MenaceX^ - 11.03.2009, 09:43
Re: truck script - by Dujma - 11.03.2009, 09:51
Re: truck script - by MenaceX^ - 11.03.2009, 09:56
Re: truck script - by thuron - 11.03.2009, 10:23
Re: truck script - by thuron - 11.03.2009, 16:15
Re: truck script - by thuron - 13.03.2009, 16:09
Re: truck script - by thuron - 16.03.2009, 08:35
Re: truck script - by [RP]Rav - 16.03.2009, 08:52

Forum Jump:


Users browsing this thread: 1 Guest(s)