SA-MP Forums Archive
ZCMD. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ZCMD. (/showthread.php?tid=185207)



ZCMD. - Gh0sT_ - 23.10.2010

Hello, im have problem with ZCMD When i add a zcmd command anywhere, i get this warning:

<...> Symbol is never used that: <cmd name>

Ex:

Quote:

COMMAND:achat(playerid, params[])
{
new
Stringas[88],
Vardas[MAX_PLAYER_NAME],
Zinute[41];
GetPlayerName(playerid, Vardas, MAX_PLAYER_NAME);
if(strlen(Zinute) > 40) return SendClientMessage(playerid, COLOR,"Ћinutė negali būti ilgesnė kaip 40simbolių.");
if(sscanf(params, "z", Zinute)) return SendClientMessage(playerid, COLOR,"Naudojimas: /achat <Tekstas>");
format(Stringas,sizeof(Stringas),"Administracijos narys %s praneљa: %s",Vardas, Zinute);
PatikrintiVisusZaidejus(ID)
{
if(playerDB[ID][admin])
{
SendClientMessage(ID, COLOR, Stringas);
}
}
}

Please help,

Thanks.


Re: ZCMD. - Miguel - 24.10.2010

Can you tell us what are you trying to do?


Re: ZCMD. - PixeledNinja - 24.10.2010

Might help if you added
pawn Код:
return 1;
to the bottom/end of your Command.

Also for better typing speed you can replace
pawn Код:
COMMAND:
with
pawn Код:
CMD: