19.01.2014, 10:21
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:
Sorry for my bad english
CODE:
PHP код:
if( dialogid == 994 )
{
if( response )
{
if(listitem == 0)
{
GetPlayerPos(playerid, Float:Xe[0], Float:Ye[0], Float:Ze[0]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 1)
{
GetPlayerPos(playerid, Float:Xe[1], Float:Ye[1], Float:Ze[1]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 2)
{
GetPlayerPos(playerid, Float:Xe[2], Float:Ye[2], Float:Ze[2]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 3)
{
GetPlayerPos(playerid, Float:Xe[3], Float:Ye[3], Float:Ze[3]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 4)
{
GetPlayerPos(playerid, Float:Xe[4], Float:Ye[4], Float:Ze[4]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 5)
{
GetPlayerPos(playerid, Float:Xe[5], Float:Ye[5], Float:Ze[5]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 6)
{
GetPlayerPos(playerid, Float:Xe[6], Float:Ye[6], Float:Ze[6]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 7)
{
GetPlayerPos(playerid, Float:Xe[7], Float:Ye[7], Float:Ze[7]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 8)
{
GetPlayerPos(playerid, Float:Xe[8], Float:Ye[8], Float:Ze[8]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 9)
{
GetPlayerPos(playerid, Float:Xe[9], Float:Ye[9], Float:Ze[9]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 10)
{
GetPlayerPos(playerid, Float:Xe[10], Float:Ye[10], Float:Ze[10]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 11)
{
GetPlayerPos(playerid, Float:Xe[11], Float:Ye[11], Float:Ze[11]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 12)
{
GetPlayerPos(playerid, Float:Xe[12], Float:Ye[12], Float:Ze[12]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 13)
{
GetPlayerPos(playerid, Float:Xe[13], Float:Ye[13], Float:Ze[13]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 14)
{
GetPlayerPos(playerid, Float:Xe[14], Float:Ye[14], Float:Ze[14]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 15)
{
GetPlayerPos(playerid, Float:Xe[15], Float:Ye[15], Float:Ze[15]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 16)
{
GetPlayerPos(playerid, Float:Xe[16], Float:Ye[16], Float:Ze[16]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 17)
{
GetPlayerPos(playerid, Float:Xe[17], Float:Ye[17], Float:Ze[17]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 18)
{
GetPlayerPos(playerid, Float:Xe[18], Float:Ye[18], Float:Ze[18]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
if(listitem == 19)
{
GetPlayerPos(playerid, Float:Xe[19], Float:Ye[19], Float:Ze[19]);
SendInfoMSG(playerid, "Taљkas pakeistas");
}
}
return 1;
}