Error
#2

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

PHP код:

new reason[101];
if(
sscanf(params,"is[100]",id,reason)) return SendClientMessage(playerid0xFF0000FF"{FF0000}USAGE: /explode [id] [reason]"); 
Reply


Messages In This Thread
Error - by Tuntun - 24.05.2014, 16:49
Re : Error - by S4t3K - 24.05.2014, 17:04
Re: Error - by Jefff - 24.05.2014, 17:05

Forum Jump:


Users browsing this thread: 1 Guest(s)