sscanf issue
#1

everytime i type enter or exit i get a sscanf warning.


Code:
[08:55:31] sscanf warning: No default value found.
Code:
CMD:enter(playerid, params[])
{
	for(new i = 0; i < sizeof(HouseInfo); i++)
	{
		if (IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ])) {
			if(PlayerInfo[playerid][pPhousekey] == i || PlayerInfo[playerid][pPhousekey2] == i || HouseInfo[i][hLock] == 0 || PlayerInfo[playerid][pRenting] == i) {
				SetPlayerInterior(playerid,HouseInfo[i][hHInteriorWorld]);
				PlayerInfo[playerid][pInt] = HouseInfo[i][hHInteriorWorld];
				PlayerInfo[playerid][pLocal] = i+6000;
				PlayerInfo[playerid][pVW] = i+6000;
				SetPlayerVirtualWorld(playerid, i+6000);
				if(HouseInfo[i][hCustomInterior] == 1)
				{
					TogglePlayerControllable(playerid, 0);
				}
				SetPlayerPos(playerid,HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
				SetPlayerFacingAngle(playerid,HouseInfo[i][hInteriorA]);
				SetCameraBehindPlayer(playerid);
				GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
				Streamer_UpdateEx(playerid, HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
			}
			else
			{
				GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
			}
			return 1;
		}
	}
	EnteredInterior[playerid] = true;
	return 1;
}


Code:
CMD:exit(playerid, params[])
{
	for(new i = 0; i <  sizeof(HouseInfo); i++) {
		if (IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hInteriorX], HouseInfo[i][hInteriorY], HouseInfo[i][hInteriorZ]) && PlayerInfo[playerid][pVW] == i+6000) {
			SetPlayerInterior(playerid,0);
			PlayerInfo[playerid][pInt] = 0;
			PlayerInfo[playerid][pLocal] = 255;
			if(HouseInfo[i][hCustomExterior]) {
				TogglePlayerControllable(playerid, 0);
			}
			SetPlayerPos(playerid,HouseInfo[i][hExteriorX],HouseInfo[i][hExteriorY],HouseInfo[i][hExteriorZ]);
			SetPlayerFacingAngle(playerid, HouseInfo[i][hExteriorA]);
			SetCameraBehindPlayer(playerid);
			SetPlayerVirtualWorld(playerid, 0);
			PlayerInfo[playerid][pVW] = 0;
			return Streamer_UpdateEx(playerid, HouseInfo[i][hExteriorX],HouseInfo[i][hExteriorY],HouseInfo[i][hExteriorZ]);
		}
	}
	EnteredInterior[playerid] = false;
	return 1;
}
Reply


Messages In This Thread
sscanf issue - by OpticKiller - 02.06.2013, 07:58
Re: sscanf issue - by Faisal_khan - 02.06.2013, 08:13
Re: sscanf issue - by OpticKiller - 02.06.2013, 08:18
Re: sscanf issue - by ReVo_ - 02.06.2013, 08:28

Forum Jump:


Users browsing this thread: 1 Guest(s)