24.05.2014, 17:04
Reason is an integer, not an array on both of your two last commands.
Initialize them like that "new reason[101];" (maximum reason's lenght is 100 + the nullbyte), and put the size (between the []) after the s specifier in sscanf, which should give
Initialize them like that "new reason[101];" (maximum reason's lenght is 100 + the nullbyte), and put the size (between the []) after the s specifier in sscanf, which should give
PHP код:
new reason[101];
if(sscanf(params,"is[100]",id,reason)) return SendClientMessage(playerid, 0xFF0000FF, "{FF0000}USAGE: /explode [id] [reason]");