07.12.2016, 22:21
This code:
Gives me the error AMX not initialised. Why?
Код:
enum drugs
{
drugSender = INVALID_PLAYER_ID,
drugReceiver = INVALID_PLAYER_ID,
drugPrice,
drugAmount
}
new SellDrugs[1000][drugs];
stock FreeDrugsSlot()
{
for(new i=0; i < sizeof(SellDrugs); i++)
{
if(SellDrugs[i][drugSender] == INVALID_PLAYER_ID) return i;
break;
}
return 0;
}
stock HasSentDrugsTo(playerid)
{
for(new i=0; i < sizeof(SellDrugs); i++)
{
if(SellDrugs[i][drugReceiver] == playerid) return true;
break;
}
return false;
}

