SA-MP Forums Archive
Please i need some proffessional help cuz everytime i put it nobody can help me.. - 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: Please i need some proffessional help cuz everytime i put it nobody can help me.. (/showthread.php?tid=477873)



Please i need some proffessional help cuz everytime i put it nobody can help me.. - Danialdano - 26.11.2013

dddddddelete


Re: Please i need some proffessional help cuz everytime i put it nobody can help me.. - Wizza - 26.11.2013

I cant really see anything wrong with this code um..


Re: Please i need some proffessional help cuz everytime i put it nobody can help me.. - Danialdano - 26.11.2013

Bumpppppppp


Re: Please i need some proffessional help cuz everytime i put it nobody can help me.. - cessil - 27.11.2013

you created a variable named idx, it get initialized with the value of 0, why would that change?

it'll always be 0 if you don't do anything to it, so if playerid 1 does the command idx will still be 0


Re: Please i need some proffessional help cuz everytime i put it nobody can help me.. - Danialdano - 27.11.2013

Quote:
Originally Posted by cessil
Посмотреть сообщение
you created a variable named idx, it get initialized with the value of 0, why would that change?

it'll always be 0 if you don't do anything to it, so if playerid 1 does the command idx will still be 0
So what do i do?


Re: Please i need some proffessional help cuz everytime i put it nobody can help me.. - Brandon_More - 27.11.2013

You have added the variable:

pawn Код:
idx
and treated it like it's a Identification. You need to define the integer inside or it will be constantly set at '0'


Re: Please i need some proffessional help cuz everytime i put it nobody can help me.. - Danialdano - 27.11.2013

How do i do that..?


Re: Please i need some proffessional help cuz everytime i put it nobody can help me.. - Brandon_More - 27.11.2013

pawn Код:
for(new idx=0; idx<sizeof(GunInfo);idx++)



Re: Please i need some proffessional help cuz everytime i put it nobody can help me.. - Danialdano - 27.11.2013

Where do i put it? please help me im a bit lost when it comes to scripting.


Re: Please i need some proffessional help cuz everytime i put it nobody can help me.. - Danialdano - 27.11.2013

Brandon..?