08.02.2012, 05:01
Hi There,
I have been messing around with is fliterscript called Hold-Studio and made a few obects for players to hold. So i used the files it saved and made a dialog box for selecting the objects to hold and a command to delet the object.
So i went to test it and the box shows up but then when i select a object nothing happens, no objects show up at all. I have looked at other dialog scripts and i couldnt find anything wrong with it.
Any suggestions or help to get this to work would be apreciated.
Thanks
Nick
I have been messing around with is fliterscript called Hold-Studio and made a few obects for players to hold. So i used the files it saved and made a dialog box for selecting the objects to hold and a command to delet the object.
So i went to test it and the box shows up but then when i select a object nothing happens, no objects show up at all. I have looked at other dialog scripts and i couldnt find anything wrong with it.
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/vip", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid,200,DIALOG_STYLE_LIST,"Truckers Inc. Vip Objects", "1. Purple Dildo\r\n2. Fire Head \n3. Parrot \n4. Xmas Tree \n5. Xmas Oridiment","Select", "Cancel"); return 1; } if (strcmp("/stopobject", cmdtext, true, 10) == 0) { RemovePlayerAttachedObject(playerid, 0); RemovePlayerAttachedObject(playerid, 1); SendClientMessage(playerid, 0x42F3F198, "Object has been removed"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case 200: { if(!response) { SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog."); return 1; } switch(listitem) { case 0: { SetPlayerAttachedObject(playerid, 0, 321, 1, -0.327592, 0.212748, -0.052466, 284.434448, 12.371046, 314.596466, 1.000000, 1.000000, 1.000000 ); // gun_dildo1 - Purple Dildo SendClientMessage(playerid, 0x42F3F198, "/stopobject to stop holding object."); } case 1: { SetPlayerAttachedObject( playerid, 0, 19270, 1, 0.533766, 0.069987, -0.055980, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // MapMarkerFire1 - flam head SendClientMessage(playerid, 0x42F3F198, "/stopobject to stop holding object."); } case 2: { SetPlayerAttachedObject( playerid, 0, 19078, 1, 0.293524, -0.061620, -0.159735, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // TheParrot1 - parrot SendClientMessage(playerid, 0x42F3F198, "/stopobject to stop holding object."); } case 3: { SetPlayerAttachedObject( playerid, 0, 19076, 1, -1.092731, 0.085716, 0.009055, 269.920074, 90.133270, 0.000000, 1.000000, 1.000000, 1.000000 ); // XmasTree1 - xmas tree man SendClientMessage(playerid, 0x42F3F198, "/stopobject to stop holding object."); } case 4: { SetPlayerAttachedObject( playerid, 0, 19063, 1, 0.859972, 0.085716, 0.009055, 269.920074, 90.133270, 0.000000, 1.000000, 1.000000, 1.000000 ); // XmasOrb5 - ordiment head SendClientMessage(playerid, 0x42F3F198, "/stopobject to stop holding object."); } } } } return 1; }
Thanks
Nick