CallRemoteFunction
#3

The code up is kinda very cofusing, can't understand what you want to say.
pawn Код:
Veh[playerid]= CreateVehicle(CallRemoteFunction("MapInfoCheck","ii",CurrentGameMode,4),CallRemoteFunction("GetSpawn","i",0),CallRemoteFunction("GetSpawn","i",1),CallRemoteFunction("GetSpawn","i",2)+5.0,CallRemoteFunction("GetSpawn","i",3), random(256), random(256), -1, 0);
    printf("%f  %f  %f  %f",CallRemoteFunction("GetSpawn","i",0),CallRemoteFunction("GetSpawn","i",1),CallRemoteFunction("GetSpawn","i",2),CallRemoteFunction("GetSpawn","i",3));
    print("PASS");
    PutPlayerInVehicle(playerid, Veh[playerid], 0);
    print("PASS");
    TogglePlayerControllable(playerid,false);
    print("PASS");
    GhostModeTimer[playerid] = CallRemoteFunction("MapInfoCheck","ii",CurrentGameMode,3);
    print("PASS");
    printf("%d",GhostModeTimer[playerid]);
I tried this code and the results in print were perfect but the spawning of vehicle was out of map(bonds) which causes a screen freeze..

Код:
native Float: _GetSpawn(func[] = "GetSpawn", form[] = "i", {Float, _}: ...) = CallRemoteFunction;
where do I add this? And why? I'm using the CallRemoteFunction in other places too but adding a float tag in it would be like?

could you explain it a bit more please.
Reply


Messages In This Thread
CallRemoteFunction - by AroseKhanNiazi - 08.03.2016, 15:18
Re: CallRemoteFunction - by Nero_3D - 08.03.2016, 16:06
Re: CallRemoteFunction - by AroseKhanNiazi - 08.03.2016, 16:14
Re: CallRemoteFunction - by Nero_3D - 08.03.2016, 16:48
Re: CallRemoteFunction - by AroseKhanNiazi - 08.03.2016, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)