Help Undefined symbol String
#1

Код:
C:\Users\aNdRe\Downloads\UnderWorld Roleplay\UnderWorld Roleplay\gamemodes\UWRP18.pwn(47772) : error 017: undefined symbol "string"
C:\Users\aNdRe\Downloads\UnderWorld Roleplay\UnderWorld Roleplay\gamemodes\UWRP18.pwn(47774) : error 017: undefined symbol "string"
C:\Users\aNdRe\Downloads\UnderWorld Roleplay\UnderWorld Roleplay\gamemodes\UWRP18.pwn(63633) : error 021: symbol already defined: "string"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Help. Here's the line 47772
Код:
	    format(string, 256, "City Alert: The Bank Robbery attempt has failed!");
47774
Код:
		SendClientMessageToAll(COLOR_LIGHTBLUE, string);
63633
Код:
	new string[128];
Reply
#2

It would help if you copied a wider section from these lines.

1st and 2nd errors are most likely that there is no defined string in that section, having the string 20k lines down isn't going to have any affect up there.

3rd is most likely that you have 2 "new string[128];" in that section of code, but again.. cannot solve much without the coding that joins these lines.
Код:
new string[128];
format(string, sizeof(string), "City Alert: The Bank Robbery attempt has failed!");
Reply
#3

Still got 1 error.
Код:
C:\Users\aNdRe\Downloads\UnderWorld Roleplay\UnderWorld Roleplay\gamemodes\UWRP18.pwn(63634) : error 021: symbol already defined: "string"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

Remove a string above that line
Reply
#5

There's no string above that line.
Reply
#6

Код:
C:\Users\aNdRe\Downloads\UnderWorld Roleplay\UnderWorld Roleplay\gamemodes\UWRP18.pwn(63634) : error 021: symbol already defined: "string"
Remove the "new string" on that line, then try again.
Reply
#7

I compile it, no errors, then when i start my home server, din't start the server.
Reply
#8

Quote:
Originally Posted by edgargreat
Посмотреть сообщение
I compile it, no errors, then when i start my home server, din't start the server.
If the script compiles fine... not sure what it could be.
Make sure all plugins are updated maybe?

If you can, post the startup logs of your server from server_log.txt, also try using the plugin "NativeChecker" available here. https://sampforum.blast.hk/showthread.php?tid=249226
Reply
#9

This is my Server Log,

Код:
*** Streamer Plugin v2.6.1 by Incognito loaded ***

[07:15:27]   Loaded.
[07:15:27]  Loading plugin: sscanf.dll
[07:15:27] 

[07:15:27]  ===============================

[07:15:27]       sscanf plugin loaded.     

[07:15:27]    © 2009 Alex "******" Cole

[07:15:27]    0.3d-R2 500 Players "dnee"

[07:15:27]  ===============================

[07:15:27]   Loaded.
[07:15:27]  Loaded 3 plugins.

[07:15:27] 
[07:15:27] Filterscripts
[07:15:27] ---------------
[07:15:27]   Loading filterscript 'yom_buttons.amx'...
[07:15:27]   Loading filterscript 'anims.amx'...
[07:15:27]   Loading filterscript 'zmapping.amx'...
[07:15:27]   Loading filterscript 'AdvancedCarSystem.amx'...
[07:15:27]   Loaded 4 filterscripts.

[07:15:27]  
[07:15:27]  ======================================= 
[07:15:27]  |                                     | 
[07:15:27]  |        YSI version 1.03.0011        | 
[07:15:27]  |        By Alex "******" Cole        | 
[07:15:27]  |                                     | 
[07:15:27]  |  Checking the latest YSI version..  | 
[07:15:27]  |                                     | 
[07:15:27]  ======================================= 
[07:15:27]  
[07:15:27] OnGameo
[07:15:27] test111.
[07:15:27] test11.
[07:15:42] 
----------------------------------
[07:15:42] Underworld Roleplay
[07:15:42] ----------------------------------

[07:15:42] Number of vehicle models: 121
[07:15:42]  
[07:15:42]  ======================================= 
[07:15:42]  |                                     | 
[07:15:42]  |   Error: Could not connect to YSI   | 
[07:15:42]  |  update server (response was 001).  | 
[07:15:42]  |                                     | 
[07:15:42]  ======================================= 
[07:15:42]  
[07:15:54]  
[07:15:54]  ======================================= 
[07:15:54]  |                                     | 
[07:15:54]  |        YSI version 1.03.0011        | 
[07:15:54]  |        By Alex "******" Cole        | 
[07:15:54]  |                                     | 
[07:15:54]  |  Checking the latest YSI version..  | 
[07:15:54]  |                                     | 
[07:15:54]  ======================================= 
[07:15:54]  
[07:15:54] OnGameo
[07:15:54] test111.
[07:15:54] test11.
[07:16:09] 
----------------------------------
[07:16:09] Underworld Roleplay
[07:16:09] ----------------------------------

[07:16:09] Number of vehicle models: 121
[07:16:09]  
[07:16:09]  ======================================= 
[07:16:09]  |                                     | 
[07:16:09]  |        YSI version 1.03.0011        | 
[07:16:09]  |        By Alex "******" Cole        | 
[07:16:09]  |                                     | 
[07:16:09]  |  Checking the latest YSI version..  | 
[07:16:09]  |                                     | 
[07:16:09]  ======================================= 
[07:16:09]  
[07:16:09] OnGameo
[07:16:09] test111.
[07:16:09] test11.
[07:16:24] 
----------------------------------
[07:16:24] Underworld Roleplay
[07:16:24] ----------------------------------

[07:16:24] Number of vehicle models: 121
[07:16:24]  
[07:16:24]  ======================================= 
[07:16:24]  |                                     | 
[07:16:24]  |        YSI version 1.03.0011        | 
[07:16:24]  |        By Alex "******" Cole        | 
[07:16:24]  |                                     | 
[07:16:24]  |  Checking the latest YSI version..  | 
[07:16:24]  |                                     | 
[07:16:24]  ======================================= 
[07:16:24]  
[07:16:24] OnGameo
[07:16:24] test111.
[07:16:24] test11.
[07:16:39] 
----------------------------------
[07:16:39] Underworld Roleplay
[07:16:39] ----------------------------------

[07:16:39] Number of vehicle models: 121
[07:16:39]  
[07:16:39]  ======================================= 
[07:16:39]  |                                     | 
[07:16:39]  |        YSI version 1.03.0011        | 
[07:16:39]  |        By Alex "******" Cole        | 
[07:16:39]  |                                     | 
[07:16:39]  |  Checking the latest YSI version..  | 
[07:16:39]  |                                     | 
[07:16:39]  ======================================= 
[07:16:39]  
[07:16:39] OnGameo
[07:16:39] test111.
[07:16:39] test11.
[07:16:54] 
----------------------------------
[07:16:54] Underworld Roleplay
[07:16:54] ----------------------------------

[07:16:54] Number of vehicle models: 121
[07:16:54]  
[07:16:54]  ======================================= 
[07:16:54]  |                                     | 
[07:16:54]  |        YSI version 1.03.0011        | 
[07:16:54]  |        By Alex "******" Cole        | 
[07:16:54]  |                                     | 
[07:16:54]  |  Checking the latest YSI version..  | 
[07:16:54]  |                                     | 
[07:16:54]  ======================================= 
[07:16:54]  
[07:16:54] OnGameo
[07:16:54] test111.
[07:16:54] test11.

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[07:19:25] 
[07:19:25] Server Plugins
[07:19:25] --------------
[07:19:25]  Loading plugin: Whirlpool.dll
[07:19:25]  
[07:19:25]  ==================
[07:19:25]  
[07:19:25]   Whirlpool loaded
[07:19:25]  
[07:19:25]  ==================
[07:19:25]  
[07:19:25]   Loaded.
[07:19:25]  Loading plugin: streamer.dll
[07:19:25] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[07:19:25]   Loaded.
[07:19:25]  Loading plugin: sscanf.dll
[07:19:25] 

[07:19:25]  ===============================

[07:19:25]       sscanf plugin loaded.     

[07:19:25]    © 2009 Alex "******" Cole

[07:19:25]    0.3d-R2 500 Players "dnee"

[07:19:25]  ===============================

[07:19:25]   Loaded.
[07:19:25]  Loaded 3 plugins.

[07:19:25] 
[07:19:25] Filterscripts
[07:19:25] ---------------
[07:19:25]   Loading filterscript 'yom_buttons.amx'...
[07:19:25]   Loading filterscript 'anims.amx'...
[07:19:25]   Loading filterscript 'zmapping.amx'...
[07:19:25]   Loading filterscript 'AdvancedCarSystem.amx'...
[07:19:25]   Loaded 4 filterscripts.

[07:19:25]  
[07:19:25]  ======================================= 
[07:19:25]  |                                     | 
[07:19:25]  |        YSI version 1.03.0011        | 
[07:19:25]  |        By Alex "******" Cole        | 
[07:19:25]  |                                     | 
[07:19:25]  |  Checking the latest YSI version..  | 
[07:19:25]  |                                     | 
[07:19:25]  ======================================= 
[07:19:25]  
[07:19:25] OnGameo
[07:19:25] test111.
[07:19:25] test11.
[07:19:40] 
----------------------------------
[07:19:40] Underworld Roleplay
[07:19:40] ----------------------------------

[07:19:40] Number of vehicle models: 121
[07:19:40]  
[07:19:40]  ======================================= 
[07:19:40]  |                                     | 
[07:19:40]  |   Error: Could not connect to YSI   | 
[07:19:40]  |  update server (response was 001).  | 
[07:19:40]  |                                     | 
[07:19:40]  ======================================= 
[07:19:40]  
[07:19:52]  
[07:19:52]  ======================================= 
[07:19:52]  |                                     | 
[07:19:52]  |        YSI version 1.03.0011        | 
[07:19:52]  |        By Alex "******" Cole        | 
[07:19:52]  |                                     | 
[07:19:52]  |  Checking the latest YSI version..  | 
[07:19:52]  |                                     | 
[07:19:52]  ======================================= 
[07:19:52]  
[07:19:52] OnGameo
[07:19:52] test111.
[07:19:52] test11.
He is always Restarting like that.
Reply
#10

You are missing scriptfiles.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)