hello i wanna put a random amount in my line
my codes:
new Float:REH[] =
{
(3, 234.60, 1187.81, 1080.25),
(10, 24.37, 1341.18, 1084.37),
(9,84.92,1324.29,1083.8),
(6,234.28,1065.22,1084.21)
};
my funaction:
forward GTP(playerid,interior,Float:x,Float:y,Float:z);
public GTP(playerid,interior,Float:x,Float:y,Float:z)
{
SetPlayerInterior(playerid,interior);
SetPlayerPos(playerid,x,y,z);
return 1;
}
forward GTP(playerid,interior,Float:x,Float:y,Float:z);
public GTP(playerid,interior,Float:x,Float:y,Float:z)
{
SetPlayerInterior(playerid,interior);
SetPlayerPos(playerid,x,y,z);
return 1;
}
my line:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new rand = random(sizeof(REH));
if(response)
{
switch(dialogid)
{
case DIALOG_EMARAT:
{
switch(listitem)
{
case 0: GTP(playerid,REH[rand][0],REH[rand][1],REH[rand][2],REH[rand][3]); //its line 144
}
}
}
}
}
error:
E:\GTA.San.Andreas\SERVER\filterscripts\HS.pwn(144) : warning 213: tag mismatch
E:\GTA.San.Andreas\SERVER\filterscripts\HS.pwn(144) : error 001: expected token: ",", but found "["
E:\GTA.San.Andreas\SERVER\filterscripts\HS.pwn(144) : warning 215: expression has no effect
E:\GTA.San.Andreas\SERVER\filterscripts\HS.pwn(144) : error 001: expected token: ";", but found "]"
E:\GTA.San.Andreas\SERVER\filterscripts\HS.pwn(144) : error 029: invalid expression, assumed zero
E:\GTA.San.Andreas\SERVER\filterscripts\HS.pwn(144) : fatal error 107: too many error messages on one line