[HELP] Job Script
#1

Well, here is my code.

Код:
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;
}
Here are my errors:

Код:
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.
This is my first go at a self-written job script. Anyone have a clue?

Thank you.
Reply


Messages In This Thread
[HELP] Job Script - by Haegon - 02.02.2009, 06:59
Re: [HELP] Job Script - by Haegon - 02.02.2009, 12:01
Re: [HELP] Job Script - by Auto-Sized - 02.02.2009, 12:13
Re: [HELP] Job Script - by Haegon - 02.02.2009, 15:01
Re: [HELP] Job Script - by Lewwy - 02.02.2009, 15:03
Re: [HELP] Job Script - by Haegon - 02.02.2009, 15:06
Re: [HELP] Job Script - by Lewwy - 02.02.2009, 15:07
Re: [HELP] Job Script - by Haegon - 02.02.2009, 15:12
Re: [HELP] Job Script - by Lewwy - 02.02.2009, 15:20
Re: [HELP] Job Script - by Haegon - 02.02.2009, 15:26

Forum Jump:


Users browsing this thread: 1 Guest(s)