21.08.2014, 14:56
Hi everyone, I am having a problem with a random giveaway for my drug system.
I made it so that after you start mining you are on a timer, after the timer ends you get a random amount of drug rocks.After I make the public function for the timer, my compiler crashes, if I remove it, the compiler works again.
My code.
Any suggestions , if more code is needed, I will post it
I made it so that after you start mining you are on a timer, after the timer ends you get a random amount of drug rocks.After I make the public function for the timer, my compiler crashes, if I remove it, the compiler works again.
My code.
pawn Код:
forward Mining(playerid);
public Mining(playerid)
{
new rocks = random(1-10);
PlayerInfo[playerid][Rocks] += rocks;
return 1;
}