Crash when I type a command
#1

Title says all

Код:
CMD:ticket(playerid, params[])
{
	new iid, cena, razlog;
	new string[128];
	new sendername[MAX_PLAYER_NAME];
	if(PlayerInfo[playerid][Clan] == 1 && PlayerInfo[playerid][Lider] == 1) return SCM(playerid, SIVA, "Nisi Policajac!");
	    if(sscanf(params, "uds[128]", iid, cena, razlog)) return SendClientMessage(playerid, SVETLO_PLAVA, "Komanda: /kazna [IgracevID/DeoImena] [Cena] [Razlog]");
		if(cena < 1 || cena > 20000) { SendClientMessage(playerid, SIVA, "Kazna moze biti izmedju 1 i 20 000  evra"); return 1; }
  		if(iid != INVALID_PLAYER_ID) return SendClientMessage(playerid, CRVENA, "Igrac je Offline !");
  		if (!ProxDetectorS(8.0, playerid, iid)) SendClientMessage(playerid, CRVENA, "Taj igrac nije blizu vas !");
		{
			format(string, sizeof(string), "Dali ste %s kaznu od %d evra | Razlog: %s", iid, cena, razlog);
			SendClientMessage(playerid, SVETLO_PLAVA, string);
			format(string, sizeof(string), "Policajac %s vam je dao kaznu u iznosu od %d evra | Razlog: %s", sendername, cena, razlog);
			SendClientMessage(iid, SVETLO_PLAVA, string);
			SendClientMessage(iid, ZELENA, "Da prihvatite kaznu upisite '/prihvatikazna'");
			TicketOffer[iid] = playerid;
			TicketMoney[iid] = cena;
		}
		return 1;
}
What wrong?
Reply


Messages In This Thread
Crash when I type a command - by ZmaXy - 12.02.2012, 22:31
Re: Crash when I type a command - by iggy1 - 12.02.2012, 22:46
Re: Crash when I type a command - by MP2 - 12.02.2012, 22:47
Re: Crash when I type a command - by [ABK]Antonio - 12.02.2012, 23:08
Re: Crash when I type a command - by ZmaXy - 12.02.2012, 23:28

Forum Jump:


Users browsing this thread: 1 Guest(s)