10.01.2014, 01:53
(
Последний раз редактировалось Quincy_Gatlin; 10.01.2014 в 02:21.
Причина: More Information
)
My gamemode that I upload to my host, Vortex Servers, should work and act exactly the same as it does when I run it on local host correct? It's not doing something right, on my local host when you register it gives you some dialogs and everything and determines where you'll spawn and such and sets your skin. When I'm running it on the Vortex Host when I click spawn instead it puts me in blueberry where everyone goes when something's screwed up.. Doesn't set my skin or anything. Player can have 3 skins which are saved in a dini and after I spawn out there I can /changeclothes and set the skin so it is loading the dini files I suppose.
I have never used a host or anything like this before, maybe I'm forgetting to upload some crucial files or something? Everything else on the server as far as I can tell seems to be working normally, including car spawns and all features and dialogs.
My server IP is: 96.8.115.229:7780
Thanks for any help, I'm puzzled as actually having a hosted server like this is new to me
Also after player is registered and leaves and after I restart the server and try to log in again it gives me this crap so I'm guessing this has something to do with the spawning :/ mmmh.
I have never used a host or anything like this before, maybe I'm forgetting to upload some crucial files or something? Everything else on the server as far as I can tell seems to be working normally, including car spawns and all features and dialogs.
My server IP is: 96.8.115.229:7780
Thanks for any help, I'm puzzled as actually having a hosted server like this is new to me
pawn Код:
public OnPlayerConnect(playerid)
{
gPlayerLogged[playerid] = 0; Mobile[playerid] = 255;
check_timer[playerid] = SetTimerEx("MoneyCheck",CHECKING_INT,1,"i",playerid);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if (!dini_Exists(file))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Hi your not registered", "Welcome, input your new password below", "Register", "Leave");
dini_IntSet(file, "Score",PlayerInfo[playerid][pScore] = 0);
dini_IntSet(file, "LevelTime",PlayerInfo[playerid][pLevelTime] = 3600);
dini_IntSet(file, "HungerTime",PlayerInfo[playerid][pHungerTime] = 900);
dini_IntSet(file, "Hunger", PlayerInfo[playerid][pHunger] = 100);
dini_FloatSet(file, "Health", PlayerInfo[playerid][pHealth] = 100);
dini_IntSet(file, "Bank", PlayerInfo[playerid][pBank] = 1000);
}
if(fexist(file))
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "Hi your registered","Welcome, Input your password below", "Login", "Leave");
LoadInfo(playerid);
RentingFaggio[playerid] = 0;
PlayerInfo[playerid][pFaggioID] = 0;
PlayerInfo[playerid][pFaggioRental] = 0;
}
return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
new INTERIOR = PlayerInfo[playerid][pInt];
new WORLD = PlayerInfo[playerid][pVW];
new SKIN = PlayerInfo[playerid][pPSkin];
SetPlayerPos(playerid, dini_Float(file, "PositionX"), dini_Float(file, "PositionY"), dini_Float(file, "PositionZ"));
SetPlayerFacingAngle(playerid, dini_Float(file, "PositionA"));
SetPlayerInterior(playerid, INTERIOR);
SetPlayerVirtualWorld(playerid, WORLD);
SetPlayerSkin(playerid, SKIN);
SetCameraBehindPlayer(playerid);
OwnedCar0[playerid] = -100;
TogglePlayerClock(playerid,0);
if(PlayerInfo[playerid][pTutorial] == 1)
{
// SetPlayerPos(playerid,positionx1,positiony1,positionz1);
// SetPlayerFacingAngle(playerid, PAngle);
// SetPlayerInterior(playerid, PInterior);
// SetPlayerVirtualWorld(playerid, PVWorld);
// SetPlayerSkin(playerid, pSkin);
return 1;
}
if(PlayerInfo[playerid][pTutorial] == 0)
{
SetPlayerPos(playerid, 1565.852905, -1750.514404, 4.612752);
SetPlayerVirtualWorld(playerid, 99);
SetPlayerCameraPos(playerid, 1544.773071, -1374.633544, 330.060302);
SetPlayerCameraLookAt(playerid, 1483.913085, -1750.473999, 15.445312);
ShowPlayerDialog(playerid, SEX, DIALOG_STYLE_LIST, "Are you Male or Female?", "Male\nFemale", "Select", "Cancel");
SendClientMessage(playerid, COLOR_YELLOW, "Insert Tutorial Here!");
return 1;
}
if(PlayerInfo[playerid][pFaggioID] > 0)
{
PlayerInfo[playerid][pFaggioID] = 0;
return 1;
}
SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Server]: /spawnmycars if you own vehicles to spawn them!");
LoadCarInfo(playerid);
return 1;
}
Also after player is registered and leaves and after I restart the server and try to log in again it gives me this crap so I'm guessing this has something to do with the spawning :/ mmmh.