SA-MP Forums Archive
Problem with cordinates - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with cordinates (/showthread.php?tid=488784)



Problem with cordinates - skydux123 - 19.01.2014

Hello everybody, I want to create my own events system, and now i want when player clicks on dialog listitem his cordinates will be inserted in variable, but it's not work why?
CODE:
PHP код:
    if( dialogid == 994 )
    {
    if( 
response )
    {
        if(
listitem == 0)
        {
        
GetPlayerPos(playeridFloat:Xe[0], Float:Ye[0], Float:Ze[0]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 1)
        {
        
GetPlayerPos(playeridFloat:Xe[1], Float:Ye[1], Float:Ze[1]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 2)
        {
        
GetPlayerPos(playeridFloat:Xe[2], Float:Ye[2], Float:Ze[2]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 3)
        {
        
GetPlayerPos(playeridFloat:Xe[3], Float:Ye[3], Float:Ze[3]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 4)
        {
        
GetPlayerPos(playeridFloat:Xe[4], Float:Ye[4], Float:Ze[4]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 5)
        {
        
GetPlayerPos(playeridFloat:Xe[5], Float:Ye[5], Float:Ze[5]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 6)
        {
        
GetPlayerPos(playeridFloat:Xe[6], Float:Ye[6], Float:Ze[6]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 7)
        {
        
GetPlayerPos(playeridFloat:Xe[7], Float:Ye[7], Float:Ze[7]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 8)
        {
        
GetPlayerPos(playeridFloat:Xe[8], Float:Ye[8], Float:Ze[8]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 9)
        {
        
GetPlayerPos(playeridFloat:Xe[9], Float:Ye[9], Float:Ze[9]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 10)
        {
        
GetPlayerPos(playeridFloat:Xe[10], Float:Ye[10], Float:Ze[10]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 11)
        {
        
GetPlayerPos(playeridFloat:Xe[11], Float:Ye[11], Float:Ze[11]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 12)
        {
        
GetPlayerPos(playeridFloat:Xe[12], Float:Ye[12], Float:Ze[12]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 13)
        {
        
GetPlayerPos(playeridFloat:Xe[13], Float:Ye[13], Float:Ze[13]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 14)
        {
        
GetPlayerPos(playeridFloat:Xe[14], Float:Ye[14], Float:Ze[14]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 15)
        {
        
GetPlayerPos(playeridFloat:Xe[15], Float:Ye[15], Float:Ze[15]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 16)
        {
        
GetPlayerPos(playeridFloat:Xe[16], Float:Ye[16], Float:Ze[16]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 17)
        {
        
GetPlayerPos(playeridFloat:Xe[17], Float:Ye[17], Float:Ze[17]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 18)
        {
        
GetPlayerPos(playeridFloat:Xe[18], Float:Ye[18], Float:Ze[18]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
        if(
listitem == 19)
        {
        
GetPlayerPos(playeridFloat:Xe[19], Float:Ye[19], Float:Ze[19]);
        
SendInfoMSG(playerid"Taљkas pakeistas");
        }
    }
    return 
1;
    } 
Sorry for my bad english


Re: Problem with cordinates - FailerZ - 19.01.2014

SetPVarFloat ?
https://sampwiki.blast.hk/wiki/SetPVarFloat


Re: Problem with cordinates - skydux123 - 19.01.2014

When it's saves, I want to show checkpoints for players who is in event, but how can i do this when cordinates is saved in player variables?