Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Force on January 14, 2010, 06:27:51 pm

Title: Fixed included new.pwn
Post by: Force on January 14, 2010, 06:27:51 pm
I've seen that a lot of people are having problems with the included new.pwn for the Windows pawn server so in under about 2 minutes I fixed it. (Not sure how as I don't even know pawn)

Anyway, line 1 needs to be:

Code: [Select]
#include <a_vcmp.inc>
And then the RequestClass needs to be changed too:

Code: [Select]
public OnPlayerRequestClass( playerid, classid )
{
printf( "OnPlayerRequestClass( %d, %d )", playerid, classid );
SetPlayerPos( playerid, 1958.3783, 1343.1572, 15.3746, 0.0, 0 );
return 1;
}

I know the Linux version compiles but this is so you can see what the problems are/were. :P

EDIT:

These are the functions that you can use for the dini.inc considering it doesn't show its functions in the side bar!

Quote
native dini_Exists( filename )
native dini_Remove( filename )
native dini_Create( filename )
native dini_Set( filename, key, value )
native dini_IntSet( filename, key, int value )
native dini_Int( filename, key )
native dini_FloatSet( filename, key, Float:value )
native dini_Float( filename, key )
native dini_BoolSet( filename, key, Bool:value )
native dini_Bool( filename, key )
native dini_Unset( filename, key )
native dini_Get( filename, key )
native dini_IsSet( filename, key )

Example: dini_Set( "/test.ini", "cow", "moo" );

Don't forget you need to actually have a test.ini already made in the scriptfiles folder where the vcmp-svr.exe is located.
Title: Re: Fixed included new.pwn
Post by: -TriX- on January 14, 2010, 07:32:59 pm
Nice work  ;)