Can someone tell me how this function work ? - 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: Can someone tell me how this function work ? (
/showthread.php?tid=486749)
Can someone tell me how this function work ? -
barts - 10.01.2014
PHP код:
for(new i=0; i<14; i++)
{
PlayerInfo[playerid][pVehMod][i] = GetVehicleComponentInSlot(PlayerInfo[playerid][pVeh], i);
}
Re: Can someone tell me how this function work ? -
newbie scripter - 10.01.2014
creates a new variable named "i", setting its value to 0, if the value of "i" is lesser than 14, the "i" will increase by 1.
for example if i = 3, its lesser than 14 and become 4. whereas if "i" = 14, i will break its loop. btw its called a loop,
https://sampforum.blast.hk/showthread.php?tid=305770
Re: Can someone tell me how this function work ? -
barts - 10.01.2014
I cant understand