11.07.2016, 23:07
Tried it like this but its not working
Database if of any help
pawn Код:
new id = 0;
for(new i = 0; i < sizeof(Teleport); i++)
{
if(Teleport[i][Kategorija] == 2)
{
id ++;
}
if(listitem == id)
{
SetPlayerVehPos(playerid, Teleport[id][PozX],Teleport[id][PozY],Teleport[id][PozZ]);
new str[127];
format(str, sizeof(str), "Teleportovani ste do %s.", Teleport[id][tpIme]);
SCM(playerid, -1, str);
}
}
Database if of any help