generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Global Function calling, stops/hangs...

Previous Thread :: Next Thread 
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
09 Nov 2013 01:09 AM
I have a problem with global functions.

This is the one script that is receiving the global function

function Chat(msg,plr)
coroutine.resume(coroutine.create(function()
if string.sub(msg,1,5)=="-join" then
print("Ran")
response= _G.AddPlrOne(plr.Name)
print("Ranzzzz")
if responce=="ADDED" then
m=Instance.new("Message",plr.PlayerGui)
m.Text="Added to current game."
game.Debris:AddItem(m,2)
elseif responce=="LOCKED" then
m=Instance.new("Message",plr.PlayerGui)
m.Text="Server replied busy, not added."
game.Debris:AddItem(m,4)
elseif responce=="FULL" then
m=Instance.new("Message",plr.PlayerGui)
m.Text="Server is full of players."
game.Debris:AddItem(m,4)
else
m=Instance.new("Message",plr.PlayerGui)
m.Text="Undefined error: "..responce..".. Report to owner!"
game.Debris:AddItem(m,4)
end
print("Ranzz")
end
end))
end


Here is the global function where it receives and responds.

paste bin . com/VfRdnNNK
--Roblox somehow errors when trying to post this raw here.

Please don't tell me that I'm stupid, like the other thread did when I waited 3 days for a response. This IS a global function, and don't keep asking whats response?... Thanks.
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
09 Nov 2013 12:02 PM
bmp1.nope
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
09 Nov 2013 12:22 PM
bmp2.lmfl
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
09 Nov 2013 12:50 PM
bmp3.hatethis.
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
09 Nov 2013 03:39 PM
bmp4.fml
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
09 Nov 2013 11:52 PM
bmp5.plzhelp.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
09 Nov 2013 11:56 PM
Is this comparing a string with a player object?

if p==plrs[a] then


I kinda have to guess without the definition of plrs.
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
10 Nov 2013 12:36 AM
No.
When I call it, I only send the player name.
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
10 Nov 2013 12:14 PM
bmp6.ugly.
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
10 Nov 2013 12:45 PM
bmp7.manyviewslittlehelp
Report Abuse
MHebes is not online. MHebes
Joined: 04 Jan 2013
Total Posts: 2278
10 Nov 2013 12:52 PM
C'mon man, you use pastebin and you don't indent your code OR highlight syntax? Oh well, looking at it now.
Report Abuse
MHebes is not online. MHebes
Joined: 04 Jan 2013
Total Posts: 2278
10 Nov 2013 12:59 PM
Line 21, Chat function, you spelled 'response' like 'responce'. Coroutines don't return errors, unfourtunately.
Report Abuse
MHebes is not online. MHebes
Joined: 04 Jan 2013
Total Posts: 2278
10 Nov 2013 12:59 PM
Same thing on line 7, same function.
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
10 Nov 2013 06:10 PM
@MHebes
Thank you. Just thank you..
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image