What's new

Solved gsc editing? Error Message

  • Thread starter DemonicModding
  • Start date
  • Views 196
DemonicModding

DemonicModding

Boxes of Riddle's every day of the Year.
Messages
92
Reaction score
4
Points
55
Okay well when it try to compile this i get error ( Bad syntax line 105 in main.gsc ) Can someone tell me what exactly is wrong with it?
This line is line 104 >>>>>>>>>>>>>>>>>>. while (self ishost())
=================================================================
37bdecfd4b206d74ddb18877fa99e269.png



forcehost()
{
while (self ishost())
{
while (getDvar(#""party_connectToOthers"") || getDvar(#""partyMigrate_disabled"") || getDvar(#""party_mergingEnabled"") || getDvar(#""allowAllNAT""))
{
 
Last edited:
DemonicModding

DemonicModding

Boxes of Riddle's every day of the Year.
Messages
92
Reaction score
4
Points
55
Please Don't Try to put me down if something simple i'm still learning this ****.
 
ImOx

ImOx

(^._.^)ノ
Retired
Programmer MotM Platinum Record
Messages
9,970
Reaction score
2,953
Points
2,180
He wouldn't know :'3

Okay well when it try to compile this i get error ( Bad syntax line 105 in main.gsc ) Can someone tell me what exactly is wrong with it?
This line is line 104 >>>>>>>>>>>>>>>>>>. while (self ishost())
=================================================================
37bdecfd4b206d74ddb18877fa99e269.png



forcehost()
{
while (self ishost())
{
while (getDvar(#""party_connectToOthers"") || getDvar(#""partyMigrate_disabled"") || getDvar(#""party_mergingEnabled"") || getDvar(#""allowAllNAT""))
{
Maybe you get bad syntax, because it is bad syntax from a decompiler. (Leeched code?)
So, since you didn't see that getDvar(#""party_connectToOthers"") is bad syntax, you really should learn at least the basics of a language like C so it would help you a lot.
But well, take this copy paste, this is proper syntax:
C:
getDvar("party_connectToOthers", "1") //value wont be 1 for all the dvars, set the value you need
And, anyways, there is no point really even to have this check which checks if dvars are set to whatever value.
There was just someone who released force host with this, and everyone copy pasted.
You can really just set always set the dvars on onPlayerConnect(), it wont matter.
 

Similar threads

IonicLithium
Replies
2
Views
450
IonicLithium
IonicLithium
X
Replies
21
Views
455
XherpxDerpX
X
Nevtox
Replies
4
Views
226
Professional
Professional
P
Replies
3
Views
262
pl0xpk3d1
P
T
Replies
3
Views
295
The Paradox
T
Top Bottom
Login
Register