Help | Why its not working?
#1

i wrote this in my script:
Код:
public OnPlayerEnterCheckpoint(playerid)
{
  GameTextForAll("Attackers has won the game!", 5000, 3);
  for(new winners = 0; winners < MAX_PLAYERS; winners++)
  {
		if(IsPlayerConnected(winners) && GetPlayerSkin(winners) == 163) CallRemoteFunction("EndGame", "d", winners), print("RonLipel is the king");
	}
	return 1;
}
and this is in another file:
Код:
public GameEnd(winners)
{
  PlayerInfo[winners][GamesWon]++;
	for(new i = 0; i < GetMaxPlayers(); i++) PlayerInfo[i][GamesCompleted]++;
	SetGame(CorrentGame == MAX_GAMES? 0 : CorrentGame + 1);
 	return 1;
}
and its not working...
but my "print", that i wrote to check this problem is works, so the problem should be in my "CallRemoteFunction", i just can't find it. :S
Help! i need somebody, Help! I dont have anybody, HELPPPPPP!
tnx,
Ron
Reply
#2

The Function name has to be exact the same
The Function has to be like this: public EndGame() other Functions arent called
Reply
#3

Quote:
Originally Posted by FUNExtreme
The Function name has to be exact the same
The Function has to be like this: public EndGame() other Functions arent called
WTFFFFFFFFFFFFFFFFFF
how the hell i didnt noticed that?!?!?!?!?!
LOL....
thanks, thats so stupid mistake.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)