Posted
Okay so i am trying to recreate queue_on_teleport and make it detect when u teleport using TeleportService but when i want it to go to the main function that does everything registering and stuff but my function is above it how can i make this work
I dont know how to correctly word this if u dont understand it just take a look at this picture
https://i.imgur.com/UIr91cx.png
Replied
int - stores integers (whole numbers), without decimals, such as 123 or -123. - w3schools.
you made an int function? shouldn't there be a "void" against int? anything else i dont have idea about.
just wanted to say that.
Cancel
Post
Random quote here...
Replied
You can put detectteleport() below thread(). Then declare detectteleport() before doing anything.
int detectteleport();
int thread()
{
}
int detectteleport()
{
}Cancel
Post
Added
@VoidableMethod ...what? You know there can be int functions right? They return an integer. You can also have string functions and bool functions or whatever. Each of them return their respective data type. Void functions just return nothing.
Example:
int intfunction()
{
return 3;
}
if (intfunction() == 3) // check if function returns 3
{
std::cout << intfunction(); // The output will be 3
}
else
{
std::cout << "It's not a 3 wtf";
}Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post