Thread: Script Help
View Single Post
Old 03-15-2013, 02:53 PM   #6
supreme kotor
Junior Member
 
supreme kotor's Avatar
 
Join Date: Mar 2013
Location: I'm lost.
Posts: 326
Current Game: Modding.. Wait is that a game?
Well maybe it's just bad luck or my inability to script but now when i het compile I get this: Error: "break" statment only allowed in "switch", "do", "while", and "for" statments Complation aborted with errors

ps. thanks for all the help and if this script wont work just let me know I will just change the dialog and use a difrent script.

EDIT: Got the script to compile but it still just wont work script now looks like this:

int StartingConditional()
{

object oUniBelt = GetObjectByTag("unibelt");

object oItem = GetItemInSlot(INVENTORY_SLOT_BELT, GetFirstPC());

if ( oItem == oUniBelt)
{
return TRUE;
("break");
}
return FALSE;
}

Last edited by supreme kotor; 03-15-2013 at 03:58 PM.
supreme kotor is offline   you may: quote & reply,