One error, grabweed. +1 rep
#6

Like everyone else said you must add another array to

pawn Код:
PInfo[playerid] += 20;
So it would be like:

pawn Код:
PInfo[playerid][SOMETHING] += 20;
Anyways, I edited your code so it can work better:

pawn Код:
CMD:grabweed(playerid, params[])
{
    if(PInfo[playerid][Drugs] < 1) return SendClientMessage(playerid, COLOR_BROWN, "You are not an supplier rank 1.");
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 302.6837,300.7080,999.1484,4.5756))
    {
        PInfo[playerid][SOMETHING] +=20;
        SendClientMessage(playerid, COLOR_RED, "You cutted a 20gram of weed as you pocket it.");
        SendClientMessage(playerid, COLOR_YELLOW, "SERVER: /checkweed for check how many grams you have left.");
    }
    else SendClientMessage(playerid, COLOR_GREY, "You are not at the druglab.");
    return 1;
}
Reply


Messages In This Thread
One error, grabweed. +1 rep - by Lynet - 13.04.2013, 20:26
Re : One error, grabweed. +1 rep - by DaTa[X] - 13.04.2013, 20:29
Re: One error, grabweed. +1 rep - by Isolated - 13.04.2013, 20:30
Re: One error, grabweed. +1 rep - by [XST]O_x - 13.04.2013, 20:30
Re: One error, grabweed. +1 rep - by Lynet - 13.04.2013, 20:31
Re: One error, grabweed. +1 rep - by JJB562 - 13.04.2013, 20:39
Re: One error, grabweed. +1 rep - by XStormiest - 13.04.2013, 20:56

Forum Jump:


Users browsing this thread: 1 Guest(s)