Give poop system
#1

So with this command it gives me errors in the red text (I replaced with poop to prevent it from getting my idea stolen)
Код:
COMMAND:givepoop(playerid, params[])
{
    new targetid;
    if(!sscanf(params, "ui", targetid)) return SendClientMessage(playerid, -1, "USAGE: /givepoop [ID]");
    pInfo[targetid][Poop] = ++;
    return 1;
}
Reply
#2

pawn Код:
COMMAND:givepoop(playerid, params[])
{
    new targetid;
    if(!sscanf(params, "ui", targetid)) return SendClientMessage(playerid, -1, "USAGE: /givepoop [ID]");
    pInfo[targetid][Poop] ++;
/* You had three operators- "= ++" when you only need "++" as the statement you were using would try to set the variable to '++' */
    return 1;
}
Reply
#3

pInfo[targetid][Poop] ++;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)