Account saving warning
#6

pawn Код:
public OnPlayerSpawn(playerid)
{
    if( PVar[ playerid ][ pLastX ] == 0.0 && PVar[ playerid ][ pLastY ] == 0.0 )
    {
        new
            RPos = random( sizeof ( RandSpawns ) );
           
        SetPlayerPos( playerid, RandSpawns[ RPos ][ 0 ], RandSpawns[ RPos ][ 1 ], RandSpawns[ RPos ][ 2 ] );
    }
    else SetPlayerPos( playerid, PVar[ playerid ][ pLastX ], PVar[ playerid ][ pLastY ], PVar[ playerid ][ pLastZ ] );
    GivePlayerMoney( playerid, PVar[ playerid ][ pMoney ] ); // <----
    return 1;
}
Reply


Messages In This Thread
Account saving warning - by manchestera - 15.10.2011, 07:08
Re: Account saving warning - by SmiT - 15.10.2011, 07:12
Re: Account saving warning - by manchestera - 15.10.2011, 07:18
Re: Account saving warning - by SmiT - 15.10.2011, 07:19
Re: Account saving warning - by manchestera - 15.10.2011, 07:26
Re: Account saving warning - by SmiT - 15.10.2011, 07:29
Re: Account saving warning - by manchestera - 15.10.2011, 07:43

Forum Jump:


Users browsing this thread: 2 Guest(s)