Dark_Samurai, i already have a question and a problem.
Click to reveal..
//------------------------------------------------------------------------------------------ // // //------------------------------------------------------------------------------------------ void start_clientserver() { //Client-Server Modus: enet_init_server(2300,4,_str("")); //Initializes the server enet_init_client(_str("127.0.0.1"),2300,_str("")); //Initializes a client //which connects over the localhost with the server while(enet_get_connection() == 3) //as long as the client-server mode consists { enet_server_poll(); //...needs to be called every frame! enet_client_poll(); wait(1); } }
//------------------------------------------------------------------------------------------ // // //------------------------------------------------------------------------------------------ function main() { enet_init(); //ENet is initialized
after running the code it works fine until it reaches the enet_ent_create function. if i comment that out it works okay. why it wont create an entity?
SOLVED!!! But you must update manual cause this is major error. instead of: enet_ent_create(_str("aut_f360.mdl"), nullvector, vehicle); it goes: enet_ent_create(_str("aut_f360.mdl"), nullvector, _str("vehicle")); you didnt mention in manual that it needs that _str part for action string.
Last edited by cerberi_croman; 11/11/0819:52. Reason: SOLVED