player StreamPrep Help Please!! -
Simplyfrag - 17.10.2012
hello am getting a error and i dont no why but that error code is Undefined Symbol : "Player_StreamPrep"
well here it is guys so please help me
error 017: undefined symbol "Player_StreamPrep"
here is the scripted Command thats making the error when i put it on
http://pastebin.com/PMDyKxKG
i will give rep
Re: player StreamPrep Help Please!! -
zSuYaNw - 17.10.2012
Player_StreamPrep is not native function!
find in gamemode "stock Player_StreamPrep" or "public Player_StreamPrep".
And post here.
Re: player StreamPrep Help Please!! -
Simplyfrag - 17.10.2012
This u mean
forward Player_StreamPrep(iPlayer, Float: fPosX, Float: fPosY, Float: fPosZ, iTime);
public Player_StreamPrep(iPlayer, Float: fPosX, Float: fPosY, Float: fPosZ, iTime) {
switch(GetPVarInt(iPlayer, "StreamPrep")) {
case 0: {
ShowNoticeGUIFrame(iPlayer, 4);
TogglePlayerControllable(iPlayer, false);
//GameTextForPlayer(iPlayer, "~w~Collecting position...", iTime * 2, 3);
SetPVarInt(iPlayer, "StreamPrep", 1);
SetTimerEx("Player_StreamPrep", iTime / 2, false, "ifffi", iPlayer, fPosX, fPosY, fPosZ, iTime);
}
case 1: {
if(GetPlayerState(iPlayer) == PLAYER_STATE_DRIVER)
SetVehiclePos(GetPlayerVehicleID(iPlayer), fPosX, fPosY, fPosZ + 2.0);
else
SetPlayerPosEx(iPlayer, fPosX, fPosY, fPosZ + 0.5);
//GameTextForPlayer(iPlayer, "~w~Streaming objects...", iTime * 2, 3);
SetPVarInt(iPlayer, "StreamPrep", 2);
SetTimerEx("Player_StreamPrep", iTime / 2, false, "ifffi", iPlayer, fPosX, fPosY, fPosZ, iTime);
}
default: {
//GameTextForPlayer(iPlayer, "~r~Loaded!", 1000, 3);
HideNoticeGUIFrame(iPlayer);
TogglePlayerControllable(iPlayer, true);
if(GetPlayerState(iPlayer) == PLAYER_STATE_DRIVER)
SetVehiclePos(GetPlayerVehicleID(iPlayer), fPosX, fPosY, fPosZ);
else
SetPlayerPosEx(iPlayer, fPosX, fPosY, fPosZ);
if(GetPVarType(iPlayer, "MedicCall")) {
ClearAnimations(iPlayer);
ApplyAnimation(iPlayer, "KNIFE", "KILL_Knife_Ped_Die", 4.0, 0, 1, 1, 1, 0, 1);
}
DeletePVar(iPlayer, "StreamPrep");
}
}
SetCameraBehindPlayer(iPlayer);
Streamer_UpdateEx(iPlayer, fPosX, fPosY, fPosZ);
}
Re: player StreamPrep Help Please!! -
zSuYaNw - 17.10.2012
PHP код:
forward Player_StreamPrep(iPlayer, Float: fPosX, Float: fPosY, Float: fPosZ, iTime);public Player_StreamPrep(iPlayer, Float: fPosX, Float: fPosY, Float: fPosZ, iTime)
{
switch(GetPVarInt(iPlayer, "StreamPrep")) {
case 0: {
ShowNoticeGUIFrame(iPlayer, 4);
TogglePlayerControllable(iPlayer, false);
//GameTextForPlayer(iPlayer, "~w~Collecting position...", iTime * 2, 3);
SetPVarInt(iPlayer, "StreamPrep", 1);
SetTimerEx("Player_StreamPrep", iTime / 2, false, "ifffi", iPlayer, fPosX, fPosY, fPosZ, iTime);
}
case 1: {
if(GetPlayerState(iPlayer) == PLAYER_STATE_DRIVER){
SetVehiclePos(GetPlayerVehicleID(iPlayer), fPosX, fPosY, fPosZ + 2.0);
}
else{
SetPlayerPosEx(iPlayer, fPosX, fPosY, fPosZ + 0.5);
//GameTextForPlayer(iPlayer, "~w~Streaming objects...", iTime * 2, 3);
SetPVarInt(iPlayer, "StreamPrep", 2);
SetTimerEx("Player_StreamPrep", iTime / 2, false, "ifffi", iPlayer, fPosX, fPosY, fPosZ, iTime);
}
}
default: {
//GameTextForPlayer(iPlayer, "~r~Loaded!", 1000, 3);
HideNoticeGUIFrame(iPlayer);
TogglePlayerControllable(iPlayer, true);
if(GetPlayerState(iPlayer) == PLAYER_STATE_DRIVER){
SetVehiclePos(GetPlayerVehicleID(iPlayer), fPosX, fPosY, fPosZ);
}
else{
SetPlayerPosEx(iPlayer, fPosX, fPosY, fPosZ);
}
if(GetPVarType(iPlayer, "MedicCall")) {
ClearAnimations(iPlayer);
ApplyAnimation(iPlayer, "KNIFE", "KILL_Knife_Ped_Die", 4.0, 0, 1, 1, 1, 0, 1);
}
DeletePVar(iPlayer, "StreamPrep");
}
}
SetCameraBehindPlayer(iPlayer);
Streamer_UpdateEx(iPlayer, fPosX, fPosY, fPosZ);
return true;
}
Re: player StreamPrep Help Please!! -
Simplyfrag - 17.10.2012
thanks man very helpful +REP