YashasSamaga / SmartCMD

fast and feature rich command processor
19 stars 3 forks source link

Undefined Symbol #1

Closed MaxAndolini closed 8 years ago

MaxAndolini commented 8 years ago

cmd_yourcommand(cid_yourcommand, playerid, "");

cid_yourcommand undefined symbol.

YashasSamaga commented 8 years ago

It is an issue with scope. I am looking for a workaround. For the time being, declare the command before you use the id variables.

You can also use GetCommandID.

MaxAndolini commented 8 years ago

How to use GetCommandID?

MaxAndolini commented 8 years ago

Work.

cmd_yourcommand(GetCommandID("yourcommand"), playerid, "");