Marks CMD as invalid
#2

"motd" would need to be a string/array. sscanf is not needed actually for such a case, use isnull and params instead.

pawn Код:
FacInfo[PlayerInfo[playerid][pFac]][facMOTD]
You also need to check that the value of PlayerInfo[playerid][pFac] is in bounds (between 0 and sizeof FacInfo - 1) otherwise run time error 4 will be caused and show the unknown command message.
Reply


Messages In This Thread
Marks CMD as invalid - by NeXoR - 17.04.2016, 10:25
Re: Marks CMD as invalid - by Konstantinos - 17.04.2016, 10:30
Re: Marks CMD as invalid - by NeXoR - 17.04.2016, 10:36
Re: Marks CMD as invalid - by Konstantinos - 17.04.2016, 10:39
Re: Marks CMD as invalid - by NeXoR - 17.04.2016, 11:22

Forum Jump:


Users browsing this thread: 2 Guest(s)