Give poop system - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Give poop system (
/showthread.php?tid=430359)
Give poop system -
NicholasA - 13.04.2013
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;
}
Re: Give poop system -
Isolated - 13.04.2013
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;
}
Re: Give poop system -
doreto - 13.04.2013
pInfo[targetid][Poop] ++;