public OnPlayerDisconnect(playerid, reason){new name[MAX_PLAYER_NAME]; new Float:fPos[ 3 ]; GetPlayerPos( playerid, fPos[ 0 ], fPos[ 1 ], fPos[ 2 ] ); GetPlayerName( playerid, name, MAX_PLAYER_NAME ); format( file, sizeof( file ), \"pos/%s.ini\", name ); if( !dini_Exists( file ) ) { dini_Create( file ); dini_FloatSet(file, \"KooX\", fPos[ 0 ] ); dini_FloatSet(file, \"KooY\", fPos[ 1 ] ); dini_FloatSet(file, \"KooZ\", fPos[ 2 ] ); } else { dini_FloatSet(file, \"KooX\", fPos[ 0 ] ); dini_FloatSet(file, \"KooY\", fPos[ 1 ] ); dini_FloatSet(file, \"KooZ\", fPos[ 2 ] ); }return 1;}ublic OnPlayerSpawn(playerid){new name[MAX_PLAYER_NAME]; new Float:fPos[ 3 ]; GetPlayerName( playerid, name, MAX_PLAYER_NAME ); format( file, sizeof( file ), \"pos/%s.ini\", name ); if( dini_Exists( file ) ) { fPos[ 0 ] = dini_Float( file, \"KooX\" ); fPos[ 1 ] = dini_Float( file, \"KooY\" ); fPos[ 2 ] = dini_Float( file, \"KooZ\" ); SetPlayerPos( playerid, fPos[ 0 ], fPos[ 1 ], fPos[ 2 ] ); } else { SetPlayerPos( playerid, -1408.2825,2654.6626,55.6875) ; }return 1;}
public OnPlayerDisconnect(playerid, reason){new name[MAX_PLAYER_NAME],Float:fPos[3],Interior;GetPlayerInterior(playerid, Interior); GetPlayerPos(playerid, fPos[0], fPos[1], fPos[2]); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(file, sizeof(file), \"pos/%s.ini\", name); if(!dini_Exists(file)) dini_Create(file); dini_FloatSet(file, \"KooX\", fPos[0]); dini_FloatSet(file, \"KooY\", fPos[1]); dini_FloatSet(file, \"KooZ\", fPos[2]); dini_IntSet(file, \"KooI\", Interior);return 1;}public OnPlayerSpawn(playerid){new name[MAX_PLAYER_NAME],Float:fPos[3],Interior; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(file, sizeof(file), \"pos/%s.ini\", name); if(dini_Exists(file)) {fPos[0] = dini_Float(file, \"KooX\"); fPos[1] = dini_Float(file, \"KooY\"); fPos[2] = dini_Float(file, \"KooZ\"); Interior = dini_Int(file, \"KooI\"); SetPlayerPos(playerid, fPos[0], fPos[1], fPos[2]); SetPlayerInterior(playerid, Interior); } else SetPlayerPos(playerid, -1408.2825,2654.6626,55.6875); return 1;}
GetPlayerInterior(playerid, Interior);
GetPlayerInterior( playerid );
(483) : warning 202: number of arguments does not match definition GetPlayerInterior(playerid, Interior); Ez mért van.
Interior = GetPlayerInterior(playerid);