Dialog help
#1

This might be a silly question, but it is like 2 years since I scripted for SA-MP
I am making a small script for myself, which I am just going to use for some testing...
It is a small and very simple object spawner script.
When player types "/obj" a dialog appears, in whichh you type the object ID of which you want to spawn.
I just have a small issue... the problem is the "inputtext" parameter. My script looks like this:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if (dialogid == 1)
    {
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        CreateObject(inputtext, x, y, z, 0.0, 0.0, 0.0, 0.0);
    }
    return 1;
}
The "inputtext" parameter in the CreateObject is the one causing the error.

Hope someone can help me. Thanks in advance.
Reply


Messages In This Thread
Dialog help - by sim_sima - 25.06.2013, 15:12
Re: Dialog help - by Deathstalker - 25.06.2013, 15:19
Re: Dialog help - by sim_sima - 25.06.2013, 15:23
Re: Dialog help - by introzen - 25.06.2013, 15:53

Forum Jump:


Users browsing this thread: 3 Guest(s)