i was making a multiplayer game and i get errors
from this script:
2235727–149047–Menu.cs (524 Bytes)
i was making a multiplayer game and i get errors
from this script:
2235727–149047–Menu.cs (524 Bytes)
Maybe if you also say what errors you are getting.
On a general basis though, use string.Compare and not == to compare strings.
Also, try to not write code that relies on comparing strings, use enums where possible.
1.no such operator ‘–’ defined for type ‘string’
2.NetwokManager.StartServer(string, int) has some invalid arguments
3.argument ‘#2’ cannot convert ‘string’ expression to type ‘int’
4.no such operator ‘++’ defined for type ‘string’
I’m pretty sure those errors are not from the script you posted.