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.
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) { if(response) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z);CreateObject(object, x, y, z, 0.0, 0.0, 0.0);Код:object = inputtext;
}
}
return 1;
}
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;
Код:
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; |