Quote:
Originally Posted by Speed
pawn Код:
stock SpawnPlayerAtHouse(playerid) { for(new i = 0; i < MAX_HOUSES; i++) { if(strcmp(HouseInfo[playerid][hOwner], GetName(playerid), true) || strcmp(HouseInfo[playerid][hRentUser], GetName(playerid), true)) { SetPlayerPos(playerid, HouseInfo[i][hExitX], HouseInfo[i][hExitY], HouseInfo[i][hExitZ]); SetPlayerInterior(playerid, HouseInfo[i][hInterior]); SetPlayerVirtualWorld(playerid, HouseInfo[i][hVirtualWorld]); PlayerEnteredHisHouse[playerid] = true; return i; } } return 1; }
try this
|
nope, I know that would not work because you need !strcmp() or strcmp() == 0, I tried that already
YEY, FIXED!