Errors please help!
#6

Here
Код:
public OnPlayerSpawn(playerid)
{
if(GetPlayerTeam(playerid) == TEAM_COPS) 
{
SetPlayerPos(playerid, 1565.7843,-1694.2400,5.8906);
SetPlayerColor(playerid, TEAM_COPS_COLOR);
}

if(GetPlayerTeam(playerid) == TEAM_CIVILIANS)
{
SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918);
SetPlayerColor(playerid, TEAM_CIVILIANS_COLOR);
ShowPlayerDialog(playerid, DIALOG_SKILL , DIALOG_STYLE_LIST, "Please Choose a skill", "Rapist\nPickPocket\nMechanic\nHitman\nWeaponDealer\nDrugDealer", "Choose", "Cancel");
}

if(GetPlayerTeam(playerid) == TEAM_RAPIST)
{
SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918);
SetPlayerColor(playerid, COLOR_GHOSTWHITE);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,5,1,17,3,22,100,41,200);
}

if(GetPlayerTeam(playerid) == TEAM_PICKPOCKET)
{
SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918);
SetPlayerColor(playerid, COLOR_GHOSTWHITE);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,15,1,22,200,29,200);
}

if(GetPlayerTeam(playerid) == TEAM_MECHANIC)
{
SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918);
SetPlayerColor(playerid, COLOR_GHOSTWHITE);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,10,1,11,1,12,1,13,1);
}

if(GetPlayerTeam(playerid) == TEAM_HITMAN)
{
SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918);
SetPlayerColor(playerid, COLOR_GHOSTWHITE);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,4,1,23,200,25,75,34,50);
}

if(GetPlayerTeam(playerid) == TEAM_WEAPONDEALER)
{
SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918);
SetPlayerColor(playerid, COLOR_GHOSTWHITE);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,50,26,20,32,100,30,200);
}

if(GetPlayerTeam(playerid) == TEAM_DRUGDEALER)
{
SetPlayerPos(playerid, 1171.4133,-1308.4025,13.9918);
SetPlayerColor(playerid, COLOR_GHOSTWHITE);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,50,32,100,30,200);
}

return 1;
}
This is my whole on player spawn ...
getting error there only !
Reply


Messages In This Thread
Errors please help! - by rockhopper - 15.05.2014, 06:07
Re: Errors please help! - by rockhopper - 15.05.2014, 06:36
Re: Errors please help! - by Lynn - 15.05.2014, 06:46
Re: Errors please help! - by rockhopper - 15.05.2014, 06:59
Re: Errors please help! - by superrobot48 - 15.05.2014, 07:06
Re: Errors please help! - by rockhopper - 15.05.2014, 07:13
Re: Errors please help! - by rockhopper - 15.05.2014, 07:36
Re: Errors please help! - by AroseKhanNiazi - 15.05.2014, 07:39
Re: Errors please help! - by rockhopper - 15.05.2014, 07:41
Re: Errors please help! - by AroseKhanNiazi - 15.05.2014, 07:48

Forum Jump:


Users browsing this thread: 3 Guest(s)