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 » Scripters
Home Search
 

Re: C++

Previous Thread :: Next Thread 
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
18 Nov 2015 12:40 PM
Can anyone help me out and take a look at my script? I'm trying to make a function that finds a string in an array and if it's there then it returns the index of it.
codepad.org
/1jTveJlG
Report Abuse
cars37 is not online. cars37
Joined: 27 Nov 2013
Total Posts: 189
18 Nov 2015 01:35 PM
You're supposed to add "int i;" before "for (i = 1; i < size; i++) {"
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
18 Nov 2015 01:46 PM
Ohhh right right
Well new error and it's telling me it only works for chars, but I need to use it for a string

/Kjdr3A8T
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
18 Nov 2015 01:48 PM
couldn't you do " "for (int i = 1; i < size; i++) {"

-=Robo=-
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
18 Nov 2015 01:49 PM
?
That's what I did.
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
18 Nov 2015 01:54 PM
i can't load the page lol
i was just talking about
sfgfdhjngio

-=Robo=-
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Nov 2015 01:58 PM
strcmp
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
18 Nov 2015 02:02 PM
moneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoney

-=Robo=-
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
18 Nov 2015 02:29 PM
Finally figured it out. Thanks guys.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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