08.03.2016, 16:14
The code up is kinda very cofusing, can't understand what you want to say.
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..
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.
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]);
Код:
native Float: _GetSpawn(func[] = "GetSpawn", form[] = "i", {Float, _}: ...) = CallRemoteFunction;
could you explain it a bit more please.