Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check my code?
#21
Code:
onPlayerSpawned()
{
    self endon("disconnect");
    
   for(;;)
    {
        self waittill("spawned_player");
        
                            self TakeAllWeapons();
                            self GiveWeapon("minigun_mp");
                            self SwitchToWeapon("minigun_mp");
         }
}

Like this Wink
Just copied the content of the Giveminigun() function into the loop at onPlayerSpawned. Smile
Reply

#22
^
your onplayerspawned should look like above Wink
[Image: lQDUjba.jpg]
Reply

#23
(07-11-2011, 23:01)prisma Wrote:
Code:
onPlayerSpawned()
{
    self endon("disconnect");
    
   for(;;)
    {
        self waittill("spawned_player");
        
                            self TakeAllWeapons();
                            self GiveWeapon("minigun_mp");
                            self SwitchToWeapon("minigun_mp");
         }
}

Like this Wink
Just copied the content of the Giveminigun() function into the loop at onPlayerSpawned. Smile
I put in this exact code:
PHP Code:
onPlayerSpawned()
{
    
self endon("disconnect");
    
   for(;;)
    {
        
self waittill("spawned_player");
        
                            
self TakeAllWeapons();
                            
self GiveWeapon("minigun_mp");
                            
self SwitchToWeapon("minigun_mp");
         }

And it give me the same annoying error.
Server script compile error
unknown function
(See console for more details)
[Image: mca.png]
Add me on steam! otterm
Reply

#24
You have to replace
Code:
onPlayerSpawned()
{
    self endon("disconnect");
    
   for(;;)
    {
        self waittill("spawned_player");
         }
}
(already inside your _rank.gsc)

With this:
Code:
onPlayerSpawned()
{
    self endon("disconnect");
    
   for(;;)
    {
        self waittill("spawned_player");
        
                            self TakeAllWeapons();
                            self GiveWeapon("minigun_mp");
                            self SwitchToWeapon("minigun_mp");
         }
}
Not just copy and paste it into it otherwise there is the same function twice Wink

Here's a _rank.gsc with the function you want:
http://nopaste.info/a718444682.html
Reply

#25
(07-11-2011, 23:32)prisma Wrote: You have to replace
Code:
onPlayerSpawned()
{
    self endon("disconnect");
    
   for(;;)
    {
        self waittill("spawned_player");
         }
}
(already inside your _rank.gsc)

With this:
Code:
onPlayerSpawned()
{
    self endon("disconnect");
    
   for(;;)
    {
        self waittill("spawned_player");
        
                            self TakeAllWeapons();
                            self GiveWeapon("minigun_mp");
                            self SwitchToWeapon("minigun_mp");
         }
}
Not just copy and paste it into it otherwise there is the same function twice Wink

Here's a _rank.gsc with the function you want:
http://nopaste.info/a718444682.html

When I use the link, it gives me a new error?
Server script compile error
Could not find script 'common_scriptsutility'
This is frustrating. Luckily, I have patience
[Image: mca.png]
Add me on steam! otterm
Reply

#26
WHAT ELSE IS IN YOUR RANK? ONLY OnPlayerSpawned()?
IS IT BLANK? or what
Reply

#27
(07-12-2011, 00:19)GOVNO12 Wrote: WHAT ELSE IS IN YOUR RANK? ONLY OnPlayerSpawned()?
IS IT BLANK? or what

It was originally before I got the link
If it can't find it? Does it mean there are missing files in the black ops folder? I can run other mods fine though.
[Image: mca.png]
Add me on steam! otterm
Reply

#28
(07-12-2011, 00:22)GoldenWrapper Wrote:
(07-12-2011, 00:19)GOVNO12 Wrote: WHAT ELSE IS IN YOUR RANK? ONLY OnPlayerSpawned()?
IS IT BLANK? or what

It was originally before I got the link
If it can't find it? Does it mean there are missing files in the black ops folder? I can run other mods fine though.

Ok now my code should work haha Big Grin
Reply

#29
(07-12-2011, 00:46)GOVNO12 Wrote:
(07-12-2011, 00:22)GoldenWrapper Wrote:
(07-12-2011, 00:19)GOVNO12 Wrote: WHAT ELSE IS IN YOUR RANK? ONLY OnPlayerSpawned()?
IS IT BLANK? or what

It was originally before I got the link
If it can't find it? Does it mean there are missing files in the black ops folder? I can run other mods fine though.

Ok now my code should work haha Big Grin

Wait what?
(07-12-2011, 00:46)GOVNO12 Wrote:
(07-12-2011, 00:22)GoldenWrapper Wrote:
(07-12-2011, 00:19)GOVNO12 Wrote: WHAT ELSE IS IN YOUR RANK? ONLY OnPlayerSpawned()?
IS IT BLANK? or what

It was originally before I got the link
If it can't find it? Does it mean there are missing files in the black ops folder? I can run other mods fine though.

Ok now my code should work haha Big Grin

Wait what?
[Image: mca.png]
Add me on steam! otterm
Reply

#30
(07-12-2011, 00:54)GoldenWrapper Wrote:
(07-12-2011, 00:46)GOVNO12 Wrote:
(07-12-2011, 00:22)GoldenWrapper Wrote:
(07-12-2011, 00:19)GOVNO12 Wrote: WHAT ELSE IS IN YOUR RANK? ONLY OnPlayerSpawned()?
IS IT BLANK? or what

It was originally before I got the link
If it can't find it? Does it mean there are missing files in the black ops folder? I can run other mods fine though.

Ok now my code should work haha Big Grin

Wait what?
(07-12-2011, 00:46)GOVNO12 Wrote:
(07-12-2011, 00:22)GoldenWrapper Wrote:
(07-12-2011, 00:19)GOVNO12 Wrote: WHAT ELSE IS IN YOUR RANK? ONLY OnPlayerSpawned()?
IS IT BLANK? or what

It was originally before I got the link
If it can't find it? Does it mean there are missing files in the black ops folder? I can run other mods fine though.

Ok now my code should work haha Big Grin

Wait what?
Now put my code in onPlayerSpawed()
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Code color crosshairs koren30 3 4,015 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 8,543 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,311 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 4,130 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 9,677 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,636 07-28-2013, 01:52
Last Post: First_Semyon
  Code of vector Bloodfocus 1 2,408 06-23-2013, 11:54
Last Post: Yamato
  How do you guys check for errors when scripting? akillj 6 4,339 06-15-2013, 10:48
Last Post: Yamato
  problem with gsc code CheGuevara 5 5,604 04-20-2013, 15:06
Last Post: Nekochan
  Do you play runescape? :D check this out xD [BTK]Foxy 1 3,025 04-05-2013, 18:16
Last Post: SuperNovaAO

Forum Jump:


Users browsing this thread:
10 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.