Help | Why its not working? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help | Why its not working? (
/showthread.php?tid=83897)
Help | Why its not working? -
RonLipel_ - 27.06.2009
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
Re: Help | Why its not working? -
FUNExtreme - 27.06.2009
The Function name has to be exact the same
The Function has to be like this: public EndGame() other Functions arent called
Re: Help | Why its not working? -
RonLipel_ - 27.06.2009
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.