Thread: sscanf issue
View Single Post
Old 27/08/2017, 12:54 PM   #6
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Location: France
Posts: 1,915
Reputation: 258
Default Re: sscanf issue

Quote:
Originally Posted by bugmenotlol View Post
hi.
i have the issue with a crack command.
code
Code:
new var1,var2,var3
if(sscanf(params)"iii",var1,var2,var3)
{
      SendClientMessage(playerid,red,"syntax wrong"):
}
else {
// it entered here
}
i am not getting any error but it always show wrongsyntax and var1,var2,var3 is numbers
anything wrong ??
thnx in advance
You should try something like that:
PHP Code:
if(sscanf(params"iii"var1var2var3))
    return 
SendClientMessage(playerid,red," wrong syntax"):
// other code 
__________________
actor_plus - v5.0.2
I'm a goner, somebody catch my breath,
I'm a goner, somebody catch my breath
Dayrion is offline   Reply With Quote