22.05.2009, 18:17
Hey guys. I've searched this forum and ****** and all and didnt find a solution to my serious problem.
Problem:
When i open a server, and any players joins, gets a random virtual world. (I know that because i made a function to /stats so i can see what VW i have).
But when player Reconnects, he gets Virtual world 0 like normally. So basically everyone must rejoin atleast twice to get in same Virtual World.
Problem 2:
I made like 200 houses now. But the problem is that when i buy a house, and enter it, and then want to /exit, nothing happens:
But when i remove this:
It works perfectly, except i spawn at other house door.
What could be possibly the problem?
Problem:
When i open a server, and any players joins, gets a random virtual world. (I know that because i made a function to /stats so i can see what VW i have).
But when player Reconnects, he gets Virtual world 0 like normally. So basically everyone must rejoin atleast twice to get in same Virtual World.
Problem 2:
I made like 200 houses now. But the problem is that when i buy a house, and enter it, and then want to /exit, nothing happens:
Quote:
if(strcmp(cmd, "/exit", true) == 0) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < sizeof(HouseInfo); i++) { //printf("House :%d",i); if(GetPlayerVirtualWorld(playerid) == HouseInfo[i][hWorld]) { if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz])) { SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; if(HouseInfo[i][hHel] == 1) { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if(tempheal < 100.0) { SetPlayerHealth(playerid,100.0); } } } } } } |
Quote:
if(GetPlayerVirtualWorld(playerid) == HouseInfo[i][hWorld]) |
What could be possibly the problem?