Help needed with Drug System
#3

Quote:
Originally Posted by frouzen
Посмотреть сообщение
What is the purpose of declaring the variable "drugs"? Why do you want to use that? It pops up as an error because you don't assign a value to it.
I wanted the variable to check if the player has that amount of drugs, but now i see myself that doesen't make any sense. I'll remove it. But how should i check if the player has that amount? So he doesen't sell more than he has?

EDIT: I'm looking at Talha's Drug Tutorial, and i think this will work.
Код:
if(drugs > PlayerInfo[playerid][pDrugs]) return SendClientMessage(playerid,COLOR_RED,"You dont have that much drugs.");
Any help around /acceptdrugs though?
Reply


Messages In This Thread
Help needed with Drug System - by Escobabe - 05.10.2017, 19:38
Re: Help needed with Drug System - by frouzen - 05.10.2017, 19:48
Re: Help needed with Drug System - by Escobabe - 05.10.2017, 19:52
Re: Help needed with Drug System - by Swankeh - 05.10.2017, 23:15
Re: Help needed with Drug System - by Escobabe - 06.10.2017, 00:18
Re: Help needed with Drug System - by ToiletDuck - 06.10.2017, 03:25

Forum Jump:


Users browsing this thread: 1 Guest(s)