i set this in my script like this but i get 2 errors
[pawn]//==============================================================================
public OnPlayerSpawn( playerid,classid,teamid )
{
PlayerInfo[ playerid ][ Spawned ] = 1;
GameTextForPlayerBottom( playerid, "\x10" );
format( file, sizeof( file ), USERS_FILE, gPlayers[ playerid ] );
if ( dini_Exists( file ) )
{
if ( PlayerInfo[ playerid ][ Logged ] != 1 )
{
new string[ 256 ];
format( string, 256, "Auto_Kill:[ %s ] Reason:[ Failed to login ]", gPlayers[ playerid ] );
SendClientMessageToAll(COLOR_GREEN,string );
SetPlayerPos( playerid, -556.0719, -739.7675, 4.7610,0,0 );
}
else
{ // player spawned and logged in so we need to set the money
new cash = dini_Int( file, "Cash" );
SetPlayerMoney( playerid, cash );
}
}
else SetPlayerMoney( playerid, 0 );
return 1;
}
if(( skinid == SKIN_COP ) || ( skinid == SKIN_SWAT ) || ( skinid == SKIN_FBI ) || ( skinid == SKIN_ARMY ))
{
SendClientMessage(playerid,CODE_HERE,"*** You have spawned as a law enforcement person.");
}
else if(classid == SKIN_CRIMINAL)
{
SendClientMessage(playerid,CODE_HERE,"*** You have spawned as a criminal.");
}
//==============================================================================[/pawn]
i get these two errors
[pawn]D:\MANSOOR FILES 8-)\Games\GTA Vice City\Vice City Mp\VC-MP SERVERS\Copy of VCMP SERVER\gamemodes\Pakistan.pwn(437) : error 010: invalid function or declaration
D:\MANSOOR FILES 8-)\Games\GTA Vice City\Vice City Mp\VC-MP SERVERS\Copy of VCMP SERVER\gamemodes\Pakistan.pwn(441) : error 010: invalid function or declaration
2 Errors.[/pawn]
plz help