creating a vehicle crashes the server, hmm.
#3

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
[pawn]static cell AMX_NATIVE_CALL vs_AddStaticVehicle(AMX *amx, cell *params)
{
int model = params[ 1 ];
float X = amx_ctof( params[ 2 ] );
float Y = amx_ctof( params[ 3 ] );
float Z = amx_ctof( params[ 4 ] );
float A = amx_ctof( params[ 5 ] );
int color1 = params[ 6 ];
int color2 = params[ 7 ];


logprintf("AddStaticVehicle( %d, %f, %f, %f, %f, %d, %d );", model, X, Y, Z, A, color1, color2 );
int id = AddStaticVehicle( model, X, Y, Z, A, color1, color2 );
return id;
}
You provided "cell" as the return value at the function prototype but later on you are returning id which is an int.
Reply


Messages In This Thread
creating a vehicle crashes the server, hmm. - by Lorenc_ - 18.08.2012, 00:48
Re: creating a vehicle crashes the server, hmm. - by Mauzen - 18.08.2012, 00:56
Re: creating a vehicle crashes the server, hmm. - by Arca - 18.08.2012, 01:29
Re: creating a vehicle crashes the server, hmm. - by samiras - 18.08.2012, 02:33
Re: creating a vehicle crashes the server, hmm. - by Lorenc_ - 18.08.2012, 02:56
Re: creating a vehicle crashes the server, hmm. - by Arca - 18.08.2012, 05:20
Re: creating a vehicle crashes the server, hmm. - by Lorenc_ - 18.08.2012, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)