• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Server] Awakeninga an old server.
#1
Hello. Im starting to realive a server originally created by Garsino, then taken over by Ricardo and [GIO]Miracoli.

Ive managed to get the server up and running, even discord bot working.
The server starts without problems on lan, but when I upload the files to Ultra-Hosting, the gamemode won't start.

Here are the warnings from pawn and I have no idea what to do with them because I started learning this literally today.

C:\Users\drwnr\Documents\drownrabbits funserver\server original\pawno\include\actor_plus.inc(1696) : warning 203: symbol is never used: "isdynamic"
C:\Users\drwnr\Documents\drownrabbits funserver\server original\pawno\include\actor_plus.inc(2799) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\drwnr\Documents\drownrabbits funserver\server original\pawno\include\actor_plus.inc(2799) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\drwnr\Documents\drownrabbits funserver\server original\pawno\include\actor_plus.inc(2799) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\drwnr\Documents\drownrabbits funserver\server original\pawno\include\discord-connector.inc(175) : warning 219: local variable "guild" shadows a variable at a preceding level
C:\Users\drwnr\Documents\drownrabbits funserver\server - drownrabbit\gamemodes\Funserver.pwn(2575) : warning 203: symbol is never used: "AttachmentBones"
C:\Users\drwnr\Documents\drownrabbits funserver\server - drownrabbit\gamemodes\Funserver.pwn(2575 -- 34525) : warning 203: symbol is never used: "TimeConvert"
Pawn compiler 3.10.6 Copyright © 1997-2006, ITB CompuPhase

Header size:          27436 bytes
Code size:          2113124 bytes
Data size:        15060140 bytes
Stack/heap size:      28000 bytes; estimated max. usage=5031 cells (20124 bytes)
Total requirements:17228700 bytes

7 Warnings.

It would be glad if you guys would know whats wrong.


Best regards,
drwnrbbt
  Reply
#2
Warnings shouldn't stop the gamemode from starting, make sure your config.json is correctly configured and you're uploading the relevant files.

In regards to the actual warnings, without seeing any code it's hard to figure out what is actually going on but generally they explain themselves fairly clearly.
symbol is never used:: "..." - You have a symbol / variable declared somewhere within your script that is not actually being used anywhere, it can probably be deleted or you're not using it correctly.
local variable "..." shadows a variable at a preceding level - You're probably trying to redefine a variable that has already been defined somewhere else in your code. Make sure you're scopes are correct and you're not redefinging a global variable.

Hopefully this is useful but due to the simplicity of these warnings, I would suggest learning more about programming before attempting to host an entire server and spending money on something you don't fully understand. Sadly, programming isn't just something you can pick up overnight (although a lot of people try) and it's better to figure out the basics using small applications or in this case a very small script that has basic functionality. Good luck!
  Reply


Forum Jump: