For Loop help
#1

Hi I'm new to for loops (trying it for the first time) and I'm getting warning 202: number of arguments does not match definition.

Line is
PHP код:
    for(new 1!= 311i++) AddPlayerClass(i, -1968.9745,137.8568,27.6875,88.85340,0000); 
I know that my AddPlayerClass is correct so it's something within my loop but I'm not quite sure.

As always person whom offers to help will get +1 Rep.

Thanks for your time.
Reply
#2

Actually AddPlayerClass is incorrect, there's nothing wrong with the loop.

Add a zero to the end. It's supposed to be:
Код:
AddPlayerClass(skinid, x, y, z, a, weapon_1, ammo_1, weapon_2, ammo_2, weapon_3, ammo_3);
Reply
#3

you forgot the last parameter of weapon3's ammo in AddPlayerClass function

edit: too late
Reply
#4

This warning is shown to functions only, for loop has nothing to do with it. It is actually not correct, you are missing 1 parameter (weapon3_ammo).
Reply
#5

Quote:
Originally Posted by Sawalha
Посмотреть сообщение
you forgot the last parameter of weapon3's ammo in AddPlayerClass function

edit: too late
Quote:
Originally Posted by Stinged
Посмотреть сообщение
Actually AddPlayerClass is incorrect, there's nothing wrong with the loop.

Add a zero to the end. It's supposed to be:
Код:
AddPlayerClass(skinid, x, y, z, a, weapon_1, ammo_1, weapon_2, ammo_2, weapon_3, ammo_3);
Awesome thanks guys. SOLVED!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)