>>> 2 ErrorS <<< Help Me Plz >>>
#1

I show these 2 errors

Код:
C:\Documents and Settings\Claudiu\Desktop\Server Sa-Mp Mortalii RPG by PuNaNi\[2.0 X]\gamemodes\Mortalii_RolePlaY_v2.4.pwn(4255) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Claudiu\Desktop\Server Sa-Mp Mortalii RPG by PuNaNi\[2.0 X]\gamemodes\Mortalii_RolePlaY_v2.4.pwn(15118) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
The lines are:




4255
Код:
		{
			case CHECKPOINT_HOME;
		  {
				PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
				DisablePlayerCheckpoint(playerid);
				gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
				GameTextForPlayer(playerid, "~w~Tu esti~n~~y~Acasa", 5000, 1);
		  }
		}
	}
	return 1;


15118
Код:
			  }
				SetPlayerCheckpoint(playerid,HouseInfo[PlayerInfo[playerid][pPhousekey]][hEntrancex], HouseInfo[PlayerInfo[playerid][pPhousekey]][hEntrancey], HouseInfo[PlayerInfo[playerid][pPhousekey]][hEntrancez], 4.0);
				GameTextForPlayer(playerid, "~w~Waypoint set ~r~Home", 5000, 1);
				gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
			}
			else
Reply
#2

case CHECKPOINT_HOME; should be case CHECKPOINT_HOME:
Reply
#3

It does not work
Reply
#4

why are you using case?
Reply
#5

No
Reply
#6

Quote:
Originally Posted by monster010
No
no what?
Reply
#7

I am understand wrong

What do you mean by using that?
Reply
#8

try if(gPlayerCheckpointStatus[playerid] == CHECKPOINT_HOME) instead of case CHECKPOINT_HOME

Also show me 4254 and 15117
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)