![]() |
What's the difference between these two?
PHP Code:
PHP Code:
If I replace them why won't it work? |
Uhm, in the second, the loop is running one time more then it should (will produce a var5)
In your first example you first set all the var# to array[b], list[b], blol[b] and blob[b], but in your second example they're all params[b], and then you suddenly use 'temp.pm'(params[c]) in the second example when it should be params[b].. I'm not going to continue explaining since the examples uses different variables, but in the end, they're not equal.. What is b? Why does params[] represent array[], list[], blol[] and blob[]? You need to show better examples or word your question better :o |
The function used:
SortPlayers( array , list , blol , blob); params[0] = array. params[1] = list. params[2] = blol. params[3] = blob. Oops at : makevar("temp.var" @ c + 1) = params[b]; That should be params[3]. Here's the full code tell me what you see is different: PHP Code:
|
Quote:
And, is this for something like a score system? It records who has the most money on the server etc.? |
HTML Code:
function onCreated() { |
| All times are GMT +2. The time now is 03:18 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.