AddPlayerClass(2,403.447265,2466.154296,16.506214,115.0000,0,0,0,1,0,0);//
AddPlayerClass(22,403.447265,2466.154296,16.506214,115.0000,0,0,0,1,0,0);//
AddPlayerClass(23,403.447265,2466.154296,16.506214,115.0000,0,0,0,1,0,0);//
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
GivePlayerMoney(playerid,1000);
new skinidi = GetPlayerSkin(playerid);
if(skinidi = 0)
{
switch(random(3))
{
case 0 :SetPlayerPos(playerid,1433.0177,1492.2183,10.8422),SendClientMessage(playerid,COLOR_WHITE,"You're in /lva.");
case 1 :SetPlayerPos(playerid,1838.9441,-1356.9666,13.5625),SendClientMessage(playerid,COLOR_WHITE,"You're in /ls1.");
case 2 :SetPlayerPos(playerid,1989.5594,1091.2728,10.6719),SendClientMessage(playerid,COLOR_WHITE,"You're in /lv1.");
}
}
return 1;
}
warning 204: symbol is assigned a value that is never used: "skinidi"
warning 211: possibly unintended assignment
if(skinidi = 0)
Originally Posted by [jS
Infinity ]
if(skinidi = 0) should be if(skinidi == 0) |
Originally Posted by Yaszine
Quote:
but in the server if i chose a person for exampl firft one, normaly it spawn me in /lva NoOOOOOOOOOO !! not work, spawn every skin you chose to one place |
if(skinidi == 2)
if(skinidi == 22)
if(skinidi == 23)
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
GivePlayerMoney(playerid,1000);
new skinidi = GetPlayerSkin(playerid);
if(skinidi == 2)
if(skinidi == 22)
if(skinidi == 23)
{
switch(random(3))
{
case 0 :SetPlayerPos(playerid,1433.0177,1492.2183,10.8422),SendClientMessage(playerid,COLOR_WHITE,"/lva.");
case 1 :SetPlayerPos(playerid,1838.9441,-1356.9666,13.5625),SendClientMessage(playerid,COLOR_WHITE,"/ls1.");
case 2 :SetPlayerPos(playerid,1989.5594,1091.2728,10.6719),SendClientMessage(playerid,COLOR_WHITE,"/lv1.");
}
}
return 1;
}
public OnPlayerSpawn(playerid) {
SetPlayerInterior(playerid,0);
GivePlayerMoney(playerid,1000);
new skinidi = GetPlayerSkin(playerid);
if(skinidi == 2 || skinidi == 22 || skinidi == 23) {
switch(random(3)) {
case 0 :SetPlayerPos(playerid,1433.0177,1492.2183,10.8422),SendClientMessage(playerid,COLOR_WHITE,"/lva.");
case 1 :SetPlayerPos(playerid,1838.9441,-1356.9666,13.5625),SendClientMessage(playerid,COLOR_WHITE,"/ls1.");
case 2 :SetPlayerPos(playerid,1989.5594,1091.2728,10.6719),SendClientMessage(playerid,COLOR_WHITE,"/lv1.");
}
}
return 1;
}
if(skinidi == 2){
SetPlayerPos(playerid,1433.0177,1492.2183,10.8422),SendClientMessage(playerid,COLOR_WHITE,"Vous кtes dans /lva.");
}
if(skinidi == 22){
SetPlayerPos(playerid,1838.9441,-1356.9666,13.5625),SendClientMessage(playerid,COLOR_WHITE,"Vous кtes dans /ls1.");
}
if(skinidi == 23){
SetPlayerPos(playerid,1989.5594,1091.2728,10.6719),SendClientMessage(playerid,COLOR_WHITE,"Vous кtes dans /lv1.");
}