pawn Код:
{
format(string,sizeof(string),"Admin Level: %i | Player Level: %i | XP Points: %d | Faction: Civilian(n/a)", Player[playerid][AdminLevel], Player[playerid][Level], Player[playerid][ExperiencePoints]);
SendClientMessage(playerid, LIBLUE, string);
KillTimer(TutorialCameraTimer[playerid]);
if(Player[playerid][SpawnPoint] == 1) //North Caravan Park
{
TogglePlayerSpectating(playerid, false);
if(Player[playerid][ClothesUsed] == 1)
{
print("Working");
SetSpawnInfo(playerid, 0, Player[playerid][Clothes1], 765.9069,361.9311,20.8550,174.3097, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
}
else if(Player[playerid][ClothesUsed] == 2)
{
print("Working");
SetSpawnInfo(playerid, 0, Player[playerid][Clothes2], 765.9069,361.9311,20.8550,174.3097, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
}
else if(Player[playerid][ClothesUsed] == 3)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes3], 765.9069,361.9311,20.8550,174.3097, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
}
}
else if(Player[playerid][SpawnPoint] == 2) //Blueberry Caravan Park
{
TogglePlayerSpectating(playerid, false);
if(Player[playerid][ClothesUsed] == 1)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes1], 252.1177,-310.5331,1.5836,52.7107, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
}
else if(Player[playerid][ClothesUsed] == 2)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes2], 252.1177,-310.5331,1.5836,52.7107, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
}
else if(Player[playerid][ClothesUsed] == 3)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes3], 252.1177,-310.5331,1.5836,52.7107, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
}
SetPlayerVirtualWorld(playerid, 0);
}
else if(Player[playerid][SpawnPoint] == 3) //Fort Carson Caravan Park
{
TogglePlayerSpectating(playerid, false);
if(Player[playerid][ClothesUsed] == 1)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes1], -63.8390,952.9380,19.8695,105.5532, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
SetPlayerVirtualWorld(playerid, 0);
}
else if(Player[playerid][ClothesUsed] == 2)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes2], -63.8390,952.9380,19.8695,105.5532, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
SetPlayerVirtualWorld(playerid, 0);
}
else if(Player[playerid][ClothesUsed] == 3)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes3], -63.8390,952.9380,19.8695,105.5532, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
SetPlayerVirtualWorld(playerid, 0);
}
}
else if(Player[playerid][SpawnPoint] == 4) //Montgomery Caravan Park
{
TogglePlayerSpectating(playerid, false);
if(Player[playerid][ClothesUsed] == 1)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes1], 1284.0914,168.3455,20.4620,354.0366, 0, 0, 0, 0, 0, 0);
SetPlayerVirtualWorld(playerid, 0);
SpawnPlayer(playerid);
}
else if(Player[playerid][ClothesUsed] == 2)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes2], 1284.0914,168.3455,20.4620,354.0366, 0, 0, 0, 0, 0, 0);
SetPlayerVirtualWorld(playerid, 0);
SpawnPlayer(playerid);
}
else if(Player[playerid][ClothesUsed] == 3)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes3], 1284.0914,168.3455,20.4620,354.0366, 0, 0, 0, 0, 0, 0);
SetPlayerVirtualWorld(playerid, 0);
SpawnPlayer(playerid);
}
}
}
It doesn't spawn the player, or print the first two when my player's set to ClothesUsed 1 and skin to 1.
UPs, sorry then, let me take a look on the code and i'll be right back to you.
Try to print before if(Player[playerid][SpawnPoint] == 1) and after it. See if its working till there.
Check that their variables are correctly set, such as SpawnPoint, ClothesUsed, ect. Use printf and debug the values of them.
They're not printing / functioning because the variables are not being set correctly then.
Well, there's nothing wrong with the way that they are set in the script. Just like all of the other things on the sql section of the script.