November 26 2024 10:58:03
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Contact Me
· Photo Gallery
· Search
· Gameservers
Languages
Users Online
· Guests Online: 23

· Members Online: 0

· Total Members: 1,134
· Newest Member: Brody
Teamspeak 3
Last Seen Users
· hackepter01:40:10
· GONZO18:34:41
· Intruder19:01:24
· Sully 1 day
· desintegrator 2 days
· WEZ 3 days
· Homi 3 days
· The ACE 4 days
· xhc 1 week
· dRgiGGLeZ 1 week
· El Dookie 1 week
· Melber 2 weeks
· SGT PEPPER 2 weeks
· martyr 2 weeks
· Terminator 2 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.28 seconds - 64 Queries 5,473,477 unique visits