GetPickupPos Extended
#1

Hey there i need help about
pawn Код:
new Float:blabla[][]={
{x,y,z},
{x,y,z},
{x,y,z}
}
new rand = random(sizeof(blabla));
new pickuppos = GetPickupPos(blabla[rand][0], blabla[rand][1],blabla[rand][2]);

stock GetPickupPos(Float:x,Float:y,Float:z)
{
    new Index=1;
    x=[Index][0]; // ITs error
    y=[Index][1];
    z=[Index][2];
    return 1;
//------------------------------------

However it gives warning & errors

(249)error 029: invalid expression, assumed zero
(249)warning 215: expression has no effect
(249)error 001: expected token: ";", but found "]"
(249)error 029: invalid expression, assumed zero
(249)fatal error 107: too many error messages on one line
//---I know the value is not give here---- but idk
    x=/*What should be added here*/[Index][0];
    y=/*What should be added here*/[Index][1];
    z=/*What should be added here*/[Index][2];

//----------------Something like inputtext from OnDialogResponse...?----------------------------
}
Hope i explained well
Reply


Messages In This Thread
[SOLVED]GetPickupPos Extended - by gurmani11 - 11.10.2014, 10:36
Re: GetPickupPos Extended - by austin070 - 11.10.2014, 11:11
Re: GetPickupPos Extended - by gurmani11 - 11.10.2014, 11:12
Re: GetPickupPos Extended - by austin070 - 11.10.2014, 11:14
Re: GetPickupPos Extended - by gurmani11 - 11.10.2014, 11:39
Re: GetPickupPos Extended - by Pottus - 11.10.2014, 12:47
Re: GetPickupPos Extended - by gurmani11 - 11.10.2014, 14:03
Re: GetPickupPos Extended - by Pottus - 11.10.2014, 14:46
Re: GetPickupPos Extended - by gurmani11 - 11.10.2014, 15:10
Re: GetPickupPos Extended - by Pottus - 11.10.2014, 15:26

Forum Jump:


Users browsing this thread: 2 Guest(s)