WTF Help
#1

how do you do when you have 0g drugs the command can't be used

Код:
if (strcmp("/usedrug Heroin", cmdtext, true, 14) == 0)
	{
            SendClientMessage(playerid, 0xFF0000AA, "Ти изпозва 1 грам Хероин");
		    Heroin[playerid]--;
		    SetPlayerDrunkLevel(playerid, 60);
		    SetPlayerWeather(playerid, 21);
			SetPlayerTime(playerid, 23, 00);
		  	return 1;
    }
Reply
#2

pawn Код:
if (strcmp("/usedrug Heroin", cmdtext, true, 14) == 0)
    {
                  if(Heroin[playerid] == 0) return SendClientMessage(playerid, -1, "Not Have Heroin, Use /buy Heroin");
                  SendClientMessage(playerid, 0xFF0000AA, "Ти изпозва 1 грам Хероин");
            Heroin[playerid]--;
            SetPlayerDrunkLevel(playerid, 60);
            SetPlayerWeather(playerid, 21);
            SetPlayerTime(playerid, 23, 00);
            return 1;
    }
Try.
Reply
#3

You just need better scripting, that's all :P
Reply
#4

Quote:
Originally Posted by .FuneraL.
Посмотреть сообщение
pawn Код:
if (strcmp("/usedrug Heroin", cmdtext, true, 14) == 0)
    {
                  if(Heroin[playerid] == 0) return SendClientMessage(playerid, -1, "Not Have Heroin, Use /buy Heroin");
                  SendClientMessage(playerid, 0xFF0000AA, "Ти изпозва 1 грам Хероин");
            Heroin[playerid]--;
            SetPlayerDrunkLevel(playerid, 60);
            SetPlayerWeather(playerid, 21);
            SetPlayerTime(playerid, 23, 00);
            return 1;
    }
Try.
thx so much


Quote:
Originally Posted by miikeyy45
Посмотреть сообщение
You just need better scripting, that's all :P
Fuckoff
Reply
#5

Quote:
Originally Posted by kaloqn54
Посмотреть сообщение
thx so much




Fuckoff
I agree, there was no need in that. Just don't tell people "You just need better scripting, that's all :P"

It's not very nice is it?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)