Jump to content

easy question


toxicsmoke11

Recommended Posts

Posted
setTimer(destroyElement, 5000, 1, daMarker) 

#include <iostream>

int main() {

    std::cout << "C++ is amazing <3" << std::endl;

    return 0;

}

I left MTA !... I m doing some tuts about (servers and scripting here) subscribe please

Posted

Nope any more quetion

#include <iostream>

int main() {

    std::cout << "C++ is amazing <3" << std::endl;

    return 0;

}

I left MTA !... I m doing some tuts about (servers and scripting here) subscribe please

Posted

i just wanna ask one more thing

if i use something like this in that script

  
-- function 
if hitElement == "player" or hitElement == "ped" or hitElement == "vehicle" or hitElement == "object" then 
outputChatBox("you hit an element") 
else outputChatBox("u hit nothing") end 
-- event is same like in first post 
  

that above example does nothing

my script is not exactly like that but it's just example

it always outputs "u hit nothing" whatever i hit with my bullet

do you know how can i fix this?

Posted

Use

getElementType(hitElement) 

#include <iostream>

int main() {

    std::cout << "C++ is amazing <3" << std::endl;

    return 0;

}

I left MTA !... I m doing some tuts about (servers and scripting here) subscribe please

Posted

Nope any more quetion dont hesist to post

#include <iostream>

int main() {

    std::cout << "C++ is amazing <3" << std::endl;

    return 0;

}

I left MTA !... I m doing some tuts about (servers and scripting here) subscribe please

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...