Compile Errors HELP!!!
#1

HI ALL!!

I'm doing a minigun warzone my code is:

Код:
if (!strcmp("/minigun", cmdtext, true, 8))
	{
    new rand;
		rand = random(5)
		rand++ //changes the 9 to 10, elimanting the number 0
		switch(rand)
		{
		case 1: SetPlayerPos(playerid,-2140.77,-248.12,36.52);
		case 2: SetPlayerPos(playerid,-2182.69,-262.16,36.52);
		case 3: SetPlayerPos(playerid,-2185.57,-231.82,36.52);
		case 4: SetPlayerPos(playerid,-2184.27,-247.84,40.72);
		case 5: SetPlayerPos(playerid,-2143.95,-262.62,40.72);
	}
  {
		 SendClientMessage(playerid, COLOR_RED, "Precisas de 5000$!");
		 return 1;
a get an error compile:

Код:
D:\Program Files\Rockstar Games\GTA San Andreas\SAMP SERVER\filterscripts\[FS]scriptsbyfragoso.pwn(182) : error 001: expected token: ";", but found "-identifier-"
D:\Program Files\Rockstar Games\GTA San Andreas\SAMP SERVER\filterscripts\[FS]scriptsbyfragoso.pwn(183) : error 001: expected token: ";", but found "switch"
D:\Program Files\Rockstar Games\GTA San Andreas\SAMP SERVER\filterscripts\[FS]scriptsbyfragoso.pwn(191) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
and I need to put this comands too:

Код:
if(GetPlayerMoney(playerid) >= 5000)
	{
  SendClientMessage(playerid, COLOR_GREY, "Acabaste de entrar na Minigun DeathMatch");
	SendClientMessage(playerid, COLOR_GREY, "Espera por jogadores para lutarem contigo, manda PM a alguйm que tu queiras jogar.");
	GameTextForPlayer(playerid, "-~y~5000", 5000, 6);
	SetPlayerHealth(playerid,100);
	SetPlayerArmour(playerid,100);
	ResetPlayerWeapons(playerid);
	GivePlayerMoney(playerid, -5000);
	GivePlayerWeapon(playerid,38,11000);
i Would like if someone can organize this code, i really tried many ways i couldn't..

I am learning yet this pawno script thing..


Thanks
Reply


Messages In This Thread
Compile Errors HELP!!! - by Fragoso - 29.03.2009, 12:01
Re: Compile Errors HELP!!! - by pspleo - 29.03.2009, 12:07
Re: Compile Errors HELP!!! - by illay - 29.03.2009, 12:13
Re: Compile Errors HELP!!! - by Fragoso - 30.03.2009, 09:24

Forum Jump:


Users browsing this thread: 1 Guest(s)