18.07.2011, 02:41
@willsuckformoney that's not what I mean.
@RealCop228:
I already read the topic from ages.
AFAIK "!" isn't useless.
I'm just sorting about a simple method.
It didn't give me any error. I just don't know why there's no size in params (Actually Idk why every funtion don't have size like OnPlayerCommandText(playerid,text[])
@RealCop228:
I already read the topic from ages.
Quote:
You will notice that you do not need to add the exclamation point (!) before calling sscanf. Above would be the proper way to use sscanf. |
pawn Code:
if(sscanf(params,"s[129] ",string)) return SendClientMessage(playerid,xxx,"This message will sent if player isn't type any params/wrong params.");
if(!sscanf(params,"s[129] ",string)) return SendClientMessage(playerid,xxx,"This message will sent if player type any correct params.");
Quote:
In your given code example, using sscanf for such a thing is worthless. You could easily use the in-built isnull function which is inside the ZCMD include. An example: |
Quote:
1) That would most likely give you an error when you attempt to compile- it is pointless to change the length of the params variable. |