27.05.2012, 08:25
You need to use sscanf to split the three values up, or ask them to enter X then Y then Z on three separate dialogs.
With that they will have to enter something like '133.7 69.0 123.45' in the dialog, or with commas.
pawn Код:
if(dialogid == SAMMOVE && response)
{
new Float:x, Float:y, Float:z;
if(sscanf(inputtext, "fff", x, y, z))
{
// Error with input - check for commas instead
if(sscanf(inputtext, "p<,>fff", x, y, z))
{
// Coordinates failed - re-show dialog with a message or something
}
}
SetObjectRot(sam, x, y, z);
}