April 20 2024 16:35:53
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Contact Me
· Photo Gallery
· Search
· Gameservers
Languages
Users Online
· Guests Online: 3

· Members Online: 0

· Total Members: 1,127
· Newest Member: Highl@nder
Teamspeak 3
Last Seen Users
· Intruder05:31:40
· GONZO20:23:50
· WEZ 2 days
· Homi 2 days
· Terminator 3 days
· Sully 3 days
· Silent Bob 5 days
· The ACE 1 week
· Highl@nder 2 weeks
· Jardacz 2 weeks
· desintegrator 2 weeks
· gus 2 weeks
· forrest747 2 weeks
· Jerry 3 weeks
· doomed 4 weeks

View Thread: My CFTDM Script error
Vietcong.Info » Vietcong General Discussion » Vietcong Tech Talk
Who is here? 1 Guest
Current Rating: (Total: 0 ratings)  
 Print Thread
My CFTDM Script error
techno
What site or where on this site can I download the latest sc_global.h from?

My script that I edited to make it CTFDM errors now, As I have used it on
other maps before I don't understand why on this map it errors on me.

After I get the script to work again, I can then follow the other post I asked about to
making it so players spawn with no rifle in a CTF game and can find a gun to use.

Plus I want to try make it so players can use a flash light in the dark tunnels.

All this after I get my script for cftdm working again.

cheers
SignatureDon't spend your time lookin' around for something you want that can't be found
 
KostiCZ
which errors?
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
techno
Compiler error:
Line:221
Message: [prime expr] symbol 'SC_P_UnLink2pvEqp' declaration expected.
SignatureDon't spend your time lookin' around for something you want that can't be found
 
KostiCZ
I think this is not 2pv but 3pv, try to change it and if error occure again, add following line somewhere to your header of script:

extern void SC_P_UnLink3pvEqp(dword pl_id, dword slot_id);
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
Ando
techno wrote:
Compiler error:
Line:221
Message: [prime expr] symbol 'SC_P_UnLink2pvEqp' declaration expected.


Yes, you should update your sc_global.h and you can find it here
 
techno
Thanks guys...
tried the first part but didn't know where to make the edit!!!
In my .c script or in the sc_global.h tried both but created more errors
I then tried updating my sc_global.h and that did the trick, no more error

Thankyou all
 
techno
problem with current sc_global.h I just downloaded.
I notice after I finalize my map I get no more errors but my map
laggs, running in map i get about every 2 seconds a moment hang
I change the sc_global.h back to my old one and finalized and no problem
with lagg but get same old error again.

As another test I put the other sc_global.h back and finalized again and
again fix the error I had before but laggs my map Sad

I will try the first self edits again and try fix my .c errors that way.

In what file or where should I put this string
extern void SC_P_UnLink3pvEqp(dword pl_id, dword slot_id);
SignatureDon't spend your time lookin' around for something you want that can't be found
 
techno
If I add extern void SC_P_UnLink3pvEqp(dword pl_id, dword slot_id);

to my sc_global.h

Download source  Code
// global integer variables
extern void SC_sgi(dword id, int a);
extern int SC_ggi(dword id);




so after the edit it looks like this

Download source  Code
// global integer variables
extern void SC_P_UnLink3pvEqp(dword pl_id, dword slot_id);
extern void SC_sgi(dword id, int a);
extern int SC_ggi(dword id);




It fixes my first error but now get error

Compiler error:
line: 227
Message: [prim expr] Symbol 'SC_P_Link3pvEqp' declaration expected..


-------------------

I should also let you know my first post I must have done a typ'o

Compiler error:
Line:221
Message: [prime expr] symbol 'SC_P_UnLink2pvEqp' declaration expected.
should have been a 3pv not 2vp...

After your post I went to change it but it was already 3pv
SignatureDon't spend your time lookin' around for something you want that can't be found
 
KostiCZ
try to search for SDK scripting manual, there is declaration of every function you need
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
Ando
techno wrote:
problem with current sc_global.h I just downloaded.
I notice after I finalize my map I get no more errors but my map
laggs, running in map i get about every 2 seconds a moment hang
I change the sc_global.h back to my old one and finalized and no problem
with lagg but get same old error again.


When you finalized with errors then some script wasn't compiled.
And when all was correctly compiled then some script what is working now will cause that lag. So you know what script is causing errors before, that must cause lag now.
You can also remove that script to see is that lag gone.
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Error in server list General Discussion 1 27-01-2022 08:17
Multiplayer Game Script Vietcong Tech Talk 4 22-06-2019 19:31
"Server kicked you out" error when creating a server [resolved] Vietcong Tech Talk 5 23-09-2018 15:49
Direct3D 9 Error CreateStateBlock Vietcong Tech Talk 1 21-05-2017 14:58
MP sync. script discussion Maps & Mapping 89 26-04-2016 09:40
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Render time: 0.19 seconds - 64 Queries 4,910,170 unique visits