Callfunctionremote - 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: Callfunctionremote (
/showthread.php?tid=260391)
Callfunctionremote -
geerdinho8 - 08.06.2011
I've made this script but the CallRemoteFunction does not appear?
pawn Код:
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "~r~%s is planting the bomb",name);
CallRemoteFunction("ShowInfoBoxPersonal", "isi", string);
pawn Код:
forward ShowInfoBoxPersonal(const string[]);
public ShowInfoBoxPersonal(const string[])
{
printf("ShowInfoBoxPersonal> %s", string);
return 1;
}
Re: Callfunctionremote -
KoczkaHUN - 08.06.2011
pawn Код:
CallRemoteFunction("ShowInfoBoxPersonal", "isi", string);
You defined "isi", which expects an integer, a string, and an other integer variable.
You just need
pawn Код:
CallRemoteFunction("ShowInfoBoxPersonal", "s", string);
Re: Callfunctionremote -
geerdinho8 - 08.06.2011
It still doesnt appear?
It is a little textbox right?
Re: Callfunctionremote -
Sasino97 - 16.06.2011
CallRemoteFunction calls a function outside of the gamemode (Like a FS). Use CallLocalFunction.