sscanf with dialogs?
#1

I was wondering how to use sscanf with dialogs.

For example, I have a dialog where you have to enter x, y, and z coordinates.

How would I use sscanf to check that the person has entered 3 coordinates separated by spaces or commas?

if(sscanf(inputtext, "fff... or whatever...
Reply
#2

Код:
new coord[3];
if(!sscanf(inputtext, "fff", coord[0], coord[1], coord[2]))
SetPlayerPos(playerid, coord[0], coord[1], coord[2]);//Example
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)