When i try my script, it says [Error] unknown identifier 'player' in script...
Can someone please help with this.
When i try my script, it says [Error] unknown identifier 'player' in script...
Can someone please help with this.
in the declare players procedure and whenever you call a player, they are named "Players". So it would look like this:
or maybe:SCAR Code:Players[0].Name:='';
Hope that helped.SCAR Code:if Players[CurrentPlayer].integers=5 then
There is nothing right in my left brain and there is nothing left in my right brain.
noobs lol
its:
SCAR Code:If(Players[Currentplayer].Integers[0-99] = 5)Then
Code:
- Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
- Solarwind: Dude, you are like... t3h s3x.
- Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
- benjaa: woah.... Jukka is the man Guildminer pwns all
- NaumanAkhlaQ: And JuKKa Is my Her0!
Nauman, the : is for assigning, you compare using =, not := -.-
Lmao JuKKa - kolmas kerta toden sanoo![]()
@ Nauman: The "if...then" statement was how it should be used after the declared players procedure. for example, let's pretend intergers[0] represents the attack level you want to train to, and then the program checks if that level has already been reached. in this case it would look like this:
I think you mistook the meaning of the earlier example, because ":=" makes something equal, and just the "=" checks if something is equal, i really hope you knew that.... xDSCAR Code:if Players[CurrentPlayer].Integers=GetSkillInfo('Attack',false) then
begin
Writeln('The wished level has been achieved!');
NextPlayer(False);
end;
@Nuka: Why is the "[0-99]" needed/what does it do? i haver never used it nor have i ever seen anyone use it... I don't think it matters, does it?
EDIT: Damn, N3ss3s was faster.... but please, can someone translate the thing he said to Jukka?
EDIT 2: this is what i got out of a translator: "third occasion truly speak". So please someone explain to me, why do we need the [0-99]?![]()
There is nothing right in my left brain and there is nothing left in my right brain.
Kolmas kerta toden sanoo, means raw translated "third time tells the truth", which may sound stupid translated like that, there propably is some real English term...
By [0..99] JuKKa means that any value from 0 to 99 there...
There are currently 1 users browsing this thread. (0 members and 1 guests)