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

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

#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

#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

#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

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

#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

#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

#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

#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()



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

Forum Jump:


Users browsing this thread:
1 Guest(s)

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