09.06.2011, 10:42
Quote:
For some reason I'm getting an error from this code.
Код:
error 017: undefined symbol "isnull" warning 202: number of arguments does not match definition 1 Error. |
Код:
CMD:time(playerid, params[]) { new hours, minutes; if (sscanf(params,"p<:>dd",hours,minutes)) return SendClientMessage(playerid, -1, "{C0C0C0}Usage: /time <time id>"); else return SetPlayerTime(playerid, hours,minutes); }
Note 1: The warning came from you not using SetPlayerTime properly: it needs 3 arguments.
Note 2: I assume your problem with isnull arose from one of your includes. However I've never seen this before so don't take my word for it.
Note 3: I've used ******'s sscanf plugin: https://sampforum.blast.hk/showthread.php?tid=120356