27.06.2009, 17:37
i wrote this in my script:
and this is in another file:
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
Код:
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; }
Код:
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; }
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