How to use this?
#1

I want to create the object which object id is typed in INPUT BOX but i get an error

Код:
C:\Users\Mouiz\Desktop\FreeRoam\filterscripts\objectedit.pwn(32) : error 006: must be assigned to an array
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
The code: (it gives the error for the highlighted line)
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(response)
        {
        new Float:x,Float:y,Float:z;
        GetPlayerPos(playerid, x, y, z);
		
Код:
object = inputtext;
CreateObject(object, x, y, z, 0.0, 0.0, 0.0);
}
}
return 1;
}
Can you tell me how to make it create the object which i enter in the Input box?
Reply
#2

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(response)
        {
        new Float:x,Float:y,Float:z,objid;
        GetPlayerPos(playerid, x, y, z);
        objid = strval(inputtext);

		CreateObject(objid, x, y, z, 0.0, 0.0, 0.0);
        }
    }
    return 1;
Reply
#3

Quote:
Originally Posted by X337
Посмотреть сообщение
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(response)
        {
        new Float:x,Float:y,Float:z,objid;
        GetPlayerPos(playerid, x, y, z);
        objid = strval(inputtext);

		CreateObject(objid, x, y, z, 0.0, 0.0, 0.0);
        }
    }
    return 1;
Thanks it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)