Give poop system
#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


Messages In This Thread
Give poop system - by NicholasA - 13.04.2013, 16:02
Re: Give poop system - by Isolated - 13.04.2013, 16:03
Re: Give poop system - by doreto - 13.04.2013, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)