[Pomoc]Ne radi :(

Započeo SpawneR., Februar 02, 2013, 14:52:43 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: od 0
Detaljan opis problema: Napravio sam ulazak u int i za GSF radi , kada isto to uradim za LACF samo sto promenim naravno kordinate nece ? O.o
Dio skripte:

////////////////////////////////////////////
if( newkeys == KEY_SECONDARY_ATTACK ) // LACF ULAZ
{
if( IsPlayerInRangeOfPoint(playerid, 3.0, 2133.9673,-2277.8928,20.6719))
{
SetPlayerPos(playerid, 2131.9514,-2278.9395,20.6719);
SetPlayerInterior( playerid, 0 );
GameTextForPlayer( playerid, "LACF place.", 3000, 1 );
return 1;
}
}
if( newkeys == KEY_SECONDARY_ATTACK ) // LACF IZLAZ
{
if( IsPlayerInRangeOfPoint(playerid, 3.0, 2131.9514,-2278.9395,20.6719))
SetPlayerPos(playerid, 2133.9673,-2277.8928,20.6719);
SetPlayerInterior( playerid, 0);
return 1;
}


Ceo onplayerkeystatechange:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( newkeys == KEY_SECONDARY_ATTACK ) // GSF ULAZ
{
if( IsPlayerInRangeOfPoint(playerid, 3.0, 2495.2959,-1690.7172,14.7656))
{
SetPlayerPos(playerid, 2496.049804,-1695.238159,1014.742187);
SetPlayerInterior( playerid, 3 );
GameTextForPlayer( playerid, "GSF chill place.", 3000, 1 );
return 1;
}
}
if( newkeys == KEY_SECONDARY_ATTACK ) // GSF IZLAZ
{
if( IsPlayerInRangeOfPoint(playerid, 3.0, 2496.049804,-1695.238159,1014.742187))
SetPlayerPos(playerid, 2495.2959,-1690.7172,14.7656);
SetPlayerInterior( playerid, 0);
return 1;
}
////////////////////////////////////////////
if( newkeys == KEY_SECONDARY_ATTACK ) // LACF ULAZ
{
if( IsPlayerInRangeOfPoint(playerid, 3.0, 2133.9673,-2277.8928,20.6719))
{
SetPlayerPos(playerid, 2131.9514,-2278.9395,20.6719);
SetPlayerInterior( playerid, 0 );
GameTextForPlayer( playerid, "LACF place.", 3000, 1 );
return 1;
}
}
if( newkeys == KEY_SECONDARY_ATTACK ) // LACF IZLAZ
{
if( IsPlayerInRangeOfPoint(playerid, 3.0, 2131.9514,-2278.9395,20.6719))
SetPlayerPos(playerid, 2133.9673,-2277.8928,20.6719);
SetPlayerInterior( playerid, 0);
return 1;
}
if(newkeys & KEY_FIRE)
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, Car[1], Car[2], Car[3]))
    {
    if(Spray[playerid] == 1)
    {
    SprayT = SetTimer("OnPlayerSpray", 5000, false);
    }
}
}
else return KillTimer(SprayT);
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

moraš promjeniti interior kod ulaza
SetPlayerInterior( playerid, 0 ); kod GSF-a ti stoji 3 stavi i kod LACF koji želiš, a kod izlaza ostavi 0 (tj. kada porta u grad)

Mozda nisi dobro kordinate stavio

Kordinate su dobre.. Stavio sam interior 0 zato sto ne spawna u interior vec odmah tu u onu kancelariju.. Znas nije int vec samo sam stavio vrata :P

Dodaš ovo na početak svog moda kod ostalih macroa:

#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))


I ovako ti treba izgledat OnPlayerKeyStateChange callback:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_SECONDARY_ATTACK))
{
if (IsPlayerInRangeOfPoint(playerid, 3.0, 2495.2959, -1690.7172, 14.7656)) // GSF ULAZ
{
SetPlayerPos(playerid, 2496.049804,-1695.238159,1014.742187);
SetPlayerInterior( playerid, 3 );
GameTextForPlayer( playerid, "GSF chill place.", 3000, 1 );
return 1;
}
else if( IsPlayerInRangeOfPoint(playerid, 3.0, 2496.049804,-1695.238159,1014.742187)) // GSF IZLAZ
{
SetPlayerPos(playerid, 2495.2959,-1690.7172,14.7656);
SetPlayerInterior( playerid, 0);
return 1;
}
else if( IsPlayerInRangeOfPoint(playerid, 3.0, 2133.9673,-2277.8928,20.6719)) // LACF ULAZ
{
SetPlayerPos(playerid, 2131.9514,-2278.9395,20.6719);
SetPlayerInterior( playerid, 0 );
GameTextForPlayer( playerid, "LACF place.", 3000, 1 );
return 1;
}
else if ( IsPlayerInRangeOfPoint(playerid, 3.0, 2131.9514,-2278.9395,20.6719)) // LACF IZLAZ
{
SetPlayerPos(playerid, 2133.9673,-2277.8928,20.6719);
SetPlayerInterior( playerid, 0);
return 1;
}
}
else if (PRESSED(KEY_FIRE))
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, Car[1], Car[2], Car[3]))
    {
    if(Spray[playerid] == 1)
    {
    SprayT = SetTimer("OnPlayerSpray", 5000, false);
    }
}
}
return 1;
}

Last nick: Paradox