Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Compile Issues

Page: 1 of 1
 HK-42
01-06-2009, 7:03 PM
#1
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?
 Canderis
01-06-2009, 7:21 PM
#2
Void main?
 HK-42
01-06-2009, 7:25 PM
#3
Void main?

tried:
void main () object oItem=CreateItemOnObject( "g_i_rycard", GetFirstPC());

Got errors:
Syntax Error at object
 Canderis
01-06-2009, 7:26 PM
#4
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());
)
 Det. Bart Lasiter
01-06-2009, 7:27 PM
#5
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
 HK-42
01-06-2009, 7:27 PM
#6
void main (
object oItem=CreateItemOnObject( "g_i_rycard", GetFirstPC());
)

Syntax Error at ";" :confused:

EDIT: Thanks Canderis and Jmac for the help it worked this time.
Page: 1 of 1