15.11.2014, 20:15
I've had an issue with sscanf regarding the below:
Basically. The command is /ahouse setexit [id]
When I run the command without the id, so just "/ahouse setexit" it comes up with the error message. However, if I enter a house idea, so "/ahouse setexit 6" for example, then the code beyond the line above isn't executed at all.
Literally, if the id is entered with the command, it just breaks at this sscanf line.
Any ideas?
Thanks.
Код:
if(sscanf(params, "{s[7]}i", houseid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /ah(ouse) setexit [id]");
When I run the command without the id, so just "/ahouse setexit" it comes up with the error message. However, if I enter a house idea, so "/ahouse setexit 6" for example, then the code beyond the line above isn't executed at all.
Literally, if the id is entered with the command, it just breaks at this sscanf line.
Any ideas?
Thanks.