warning 225 - help me)
#1

****.pwn(39488 ) : warning 225: unreachable code

Код:
	if(strcmp(cmd,"/buyps",true)==0)
    {
        if(IsPlayerConnected(playerid))
	    {
			if(IsACop(playerid))
			{
			    SendClientMessage(playerid, COLOR_GREY, "Ты состоишь в копах, какие пакеты? Оо");
			    return 1;
			}
       		if(!PlayerToPoint(5.0,playerid,2800.9570,-2521.2500,13.3326))
   			{
			    SendClientMessage(playerid, COLOR_GREY, "Ты не у места покупки пакетов. Узнать можно в /kpk - Локации.");
				return 1;
			}
			else
			{
			}
                new money;
				new money1;
   				tmp = strtok(cmdtext, idx);
			    if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_ISPOLZUY, "{33AA33}[Использование]{FFFFFF}: /buyps [1-30]");
					return 1;
				}
				moneys = strval(tmp);
				if(moneys < 1 || moneys > 99999999)
				{
					SendClientMessage(playerid, COLOR_GREY, "Меньше 1 и больше 99999999 пакетов купить нельзя.");
					return 1;
				}
				//Ps = PlayerInfo[playerid][pPs];
				if(PlayerInfo[playerid][pPs])
				{
				    format(string, sizeof(string), "Ты уже купил пакеты, отвези их.");
				    SendClientMessage(playerid, COLOR_GREY, string);
				    return 1;
				}
				money = moneys*100;
				money1 = GetPlayerMoney(playerid);
				if(money > money1)
				{
					format(string, sizeof(string),"У тебя не хватает денег. Нужно $%d.", money);
					SendClientMessage(playerid, COLOR_GREY, string);
					return 1;
				}
				GiveMoney(playerid, -money);
				format(string,sizeof(string),"Ты купил(а) {33AA33}%d {FFFFFF}пакетов за {33AA33}$%d{FFFFFF}.",moneys,money);
				SendClientMessage(playerid, COLOR_WHITE, string);
				PlayerInfo[playerid][pPs] = moneys;
				return 1;
   		}
	}
Reply
#2

Seriously? You've made another topic for the same bug just else where in the script?

https://sampforum.blast.hk/showthread.php?tid=408127
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)