#1

Any ideas how to fix?
Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
		switch(Racer[playerid])
    {

         case 1:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 0,221.4506,-237.5654,1.5781,10);
              Racer[playerid] = 2;
              return 1;
         }
         case 2:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 0,214.9507,-236.8197,1.5781,10);
              Racer[playerid] = 3;
              return 1;
         }
         case 3:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 0,200.9814,-236.9374,1.5781,10);
              Racer[playerid] = 4;
              return 1;
         }
         case 4:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 0,208.5633,-226.5358,1.7786,10);
              Racer[playerid] = 5;
              return 1;
         }
         case 5:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 0,219.8695,-226.2397,1.7786,10);
              Racer[playerid] = 6;
              return 1;
         }
         case 6:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 0,198.7962,-225.4457,1.7786,10);
              Racer[playerid] = 7;
              return 1;
         }
         case 7:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 0,198.0949,-228.9090,1.7786,10);
              Racer[playerid] = 8;
              return 1;
         }
         case 8:
         {
              DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 0,194.4960,-226.5717,1.7786,10);
              Racer[playerid] = 9;
              return 1;
    	 }
    	 case 9:
    	 {
   			  DisablePlayerRaceCheckpoint(playerid);
              SetPlayerRaceCheckpoint(playerid, 1,212.7694,-232.8901,1.7786,10);
              Racer[playerid] = 10;
			  return 1;
		 }
		 case 10:
		 {
              static place;
              place++;
			  DisablePlayerRaceCheckpoint(playerid);
			  SetPlayerRaceCheckpoint(playerid, 1,202.9554,-232.6978,1.7786,10);
			  Racer[playerid] = 11;
    	      new name[MAX_PLAYER_NAME], string[100];
              GetPlayerName(playerid, name, sizeof(name));
              format(string, sizeof(string), "Player %s Has Finshed Painting [%d%s]"
              DisablePlayerCheckpoint(playerid);
		  }
	}
    return 1;
}
C:\Users\Astro\Desktop\Server1\gamemodes\hi.pwn(16 2) : error 017: undefined symbol "Racer"
C:\Users\Astro\Desktop\Server1\gamemodes\hi.pwn(16 2) : error 029: invalid expression, assumed zero
C:\Users\Astro\Desktop\Server1\gamemodes\hi.pwn(16 2) : error 029: invalid expression, assumed zero
C:\Users\Astro\Desktop\Server1\gamemodes\hi.pwn(16 2) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

The line 162 is switch(Racer[playerid])
Reply
#2

Quote:

switch(Racer[playerid])

and where did you define racer?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)