desibro wrote on February 12, 2023, 12:19 am:
Problem(error/warning): Nece da promeni na sledecu scenu . Cim se prva zavrsi tako ostane i tjt .
Pawno Code:
forward CRPIntro1(playerid, crpintroid1);
public CRPIntro1(playerid, crpintroid1)
{
if(IsPlayerConnected(playerid))
{
if(crpintroid1 == 1)
{
TogglePlayerControllable(playerid, 0);
InterpolateCameraPos(playerid, -1482.894653, 1439.478027, 40.264240, -1443.223510, 905.019287, 73.632347, 10000);
InterpolateCameraLookAt(playerid, -1486.257568, 1435.833251, 40.901336, -1447.348876, 907.821350, 73.992416, 10000);
CRPIntroTimer = SetTimerEx("crpintroid1", 10000, 0, "ii", playerid, 2);
}
else if(crpintroid1 == 2)
{
TogglePlayerControllable(playerid, 0);
InterpolateCameraPos(playerid, -1015.489562, -1669.728393, 81.748130, -1015.489562, -1669.728393, 81.748130, 10000);
InterpolateCameraLookAt(playerid, -1019.984375, -1667.539794, 81.830062, -1019.984375, -1667.539794, 81.830062, 10000);
CRPIntroTimer = SetTimerEx("crpintroid1", 10000, 0, "ii", playerid, 3);
}
else if(rrpintroid1 == 3)
{
TogglePlayerControllable(playerid, 0);
InterpolateCameraPos(playerid, 509.698699, -2089.050781, 1.130464, 419.765075, -2044.542114, 2.361675, 10000);
InterpolateCameraLookAt(playerid, 505.308441, -2086.663085, 1.287637, 416.050445, -2042.532226, 5.037825, 10000);
}
Slika/video ingame problema(obavezno ako je ingame problem): /
Pokusaj ovako i pisi jel radi
new CRPIntroTimer;
forward CRPIntro1( playerid, izbor );
public CRPIntro1( playerid, izbor )
{
if( izbor == 1 )
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid, 0);
InterpolateCameraPos(playerid, -1482.894653, 1439.478027, 40.264240, -1443.223510, 905.019287, 73.632347, 10000);
InterpolateCameraLookAt(playerid, -1486.257568, 1435.833251, 40.901336, -1447.348876, 907.821350, 73.992416, 10000);
CRPIntroTimer = SetTimerEx("crpintroid1", 10000, false, "ii", playerid, 2 );
}
else if( izbor == 2 )
{
TogglePlayerControllable(playerid, 0);
InterpolateCameraPos(playerid, -1015.489562, -1669.728393, 81.748130, -1015.489562, -1669.728393, 81.748130, 10000);
InterpolateCameraLookAt(playerid, -1019.984375, -1667.539794, 81.830062, -1019.984375, -1667.539794, 81.830062, 10000);
CRPIntroTimer = SetTimerEx("crpintroid1", 10000, false, "ii", playerid, 3 );
}
else if( izbor == 3 )
{
TogglePlayerControllable(playerid, 0);
InterpolateCameraPos(playerid, 509.698699, -2089.050781, 1.130464, 419.765075, -2044.542114, 2.361675, 10000);
InterpolateCameraLookAt(playerid, 505.308441, -2086.663085, 1.287637, 416.050445, -2042.532226, 5.037825, 10000);
CRPIntroTimer = SetTimerEx("crpintroid1", 10000, false, "ii", playerid, 4 );
}
return 1;
}
Kod kraj register stavi
CRPIntroTimer = SetTimerEx("crpintroid1",465, false, "ii", playerid, 1 );