02.02.2009, 06:59
Well, here is my code.
Here are my errors:
This is my first go at a self-written job script. Anyone have a clue?
Thank you.
Код:
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.
Thank you.