HK-42 Posted January 7, 2009 Share Posted January 7, 2009 Alright I'm trying to compile a giveitem script I got off Tk's frequent scripts in ktool. object oItem=CreateItemOnObject( "g_i_rycard", GetFirstPC()); Everytime I compile it seems its successful, but when I got to the folder I compiled it to its not there? It compiles with no said errors though. I dont know whats wrong. Anyideas? Link to comment Share on other sites More sharing options...
Canderis Posted January 7, 2009 Share Posted January 7, 2009 Void main? Link to comment Share on other sites More sharing options...
HK-42 Posted January 7, 2009 Author Share Posted January 7, 2009 Void main? tried: void main () object oItem=CreateItemOnObject( "g_i_rycard", GetFirstPC()); Got errors: Syntax Error at object Link to comment Share on other sites More sharing options...
Canderis Posted January 7, 2009 Share Posted January 7, 2009 tried: void main () object oItem=CreateItemOnObject( "g_i_rycard", GetFirstPC()); Got errors: Syntax Error at object void main ( object oItem=CreateItemOnObject( "g_i_rycard", GetFirstPC()); ) Link to comment Share on other sites More sharing options...
Det. Bart Lasiter Posted January 7, 2009 Share Posted January 7, 2009 void main() { object oItem=CreateItemOnObject( "g_i_rycard", GetFirstPC()); } go pick up a copy of c for dummies or whatever to get an idea of the syntax Link to comment Share on other sites More sharing options...
HK-42 Posted January 7, 2009 Author Share Posted January 7, 2009 void main ( object oItem=CreateItemOnObject( "g_i_rycard", GetFirstPC()); ) Syntax Error at ";" EDIT: Thanks Canderis and Jmac for the help it worked this time. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.