public JobArmsDealer() { for(new i=0; i<MAX_PLAYERS; i++ ) { if(IsPlayerConnected(i)) { if(PlayerToPoint(1, i, 1366.4478,-1274.9559,13.5469)) // Location that the player has to be at to get the job. { new Float:x, Float:y, Float:z; GetPlayerPos(i, x, y, z); if (GetPlayerTeam(i) == 1); { SendClientMessage(i, COLOR_WHITE, "LSPD cannot get Arms Dealer!"); } if (GetPlayerTeam(i) == 2); { SendClientMessage(i, COLOR_WHITE, "FBI cannot get Arms Dealer!"); } if (GetPlayerTeam(i) == 3); { SendClientMessage(i, COLOR_WHITE, "You already have a job!"); } if (GetPlayerTeam(i) == 4); { SendClientMessage(i, COLOR_WHITE, "You already have a job!"); } if (GetPlayerTeam(i) == 5); { SendClientMessage(i, COLOR_WHITE, "You already have a job!"); } if (GetPlayerTeam(i) == 6); { SendClientMessage(i, COLOR_WHITE, "You are already a Arms Dealer!"); } if (GetPlayerTeam(i) == 7); { SendClientMessage(i, COLOR_WHITE, "You already have a job!"); } else { SetPlayerTeam(i, 6); } } } } return 0; }
C:\Users\Administrator\Desktop\SAMP Server\gamemodes\cgroleplay.pwn(748) : error 036: empty statement C:\Users\Administrator\Desktop\SAMP Server\gamemodes\cgroleplay.pwn(752) : error 036: empty statement C:\Users\Administrator\Desktop\SAMP Server\gamemodes\cgroleplay.pwn(756) : error 036: empty statement C:\Users\Administrator\Desktop\SAMP Server\gamemodes\cgroleplay.pwn(760) : error 036: empty statement C:\Users\Administrator\Desktop\SAMP Server\gamemodes\cgroleplay.pwn(764) : error 036: empty statement C:\Users\Administrator\Desktop\SAMP Server\gamemodes\cgroleplay.pwn(768) : error 036: empty statement C:\Users\Administrator\Desktop\SAMP Server\gamemodes\cgroleplay.pwn(772) : error 036: empty statement C:\Users\Administrator\Desktop\SAMP Server\gamemodes\cgroleplay.pwn(776) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 8 Errors.
(GetPlayerTeam(i) == 2);
(GetPlayerTeam(i) == 2)//remove ; on all
Originally Posted by Haegon
How would I go about making it to where you have to type a command while standing on the icon to get the job?
|
if(strcmp(cmdtext, "/join", true) == 0)
{
if(PlayerToPoint(1.0, playerid, hitcordx, hitcordy, hitcordz))
{
GameTextForPlayer(playerid, "You picked the Hitman Job! ~n~Type /acceptjob to accept.", 2500, 3); // hitman job
}
else if(PlayerToPoint(1.0, playerid, bincordx, bincordy, bincordz))
{
GameTextForPlayer(playerid, "You picked the Binman Job! ~n~Type /acceptjob to accept.", 2500, 3); // binman job.
}
return 1;
}