Callfunctionremote
#1

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;
}
Reply
#2

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);
Reply
#3

It still doesnt appear?
It is a little textbox right?
Reply
#4

CallRemoteFunction calls a function outside of the gamemode (Like a FS). Use CallLocalFunction.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)