• Welcome to Vice City Multiplayer.
 

Fixed included new.pwn

Started by Force, January 14, 2010, 04:27:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Force

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:

#include <a_vcmp.inc>

And then the RequestClass needs to be changed too:


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.

-TriX-



www.life-urban.co.cc