Author Topic: Fixed included new.pwn  (Read 3506 times)

0 Members and 1 Guest are viewing this topic.

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Fixed included new.pwn
« 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.
« Last Edit: January 14, 2010, 07:14:17 pm by Force »

Offline -TriX-

  • Street Thug
  • *
  • Posts: 13
  • Elite Paradise VC-MP Server Administrator.
    • View Profile
    • Killzserver VC-MP
Re: Fixed included new.pwn
« Reply #1 on: January 14, 2010, 07:32:59 pm »
Nice work  ;)