AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   make a ranks for mod (https://forums.alliedmods.net/showthread.php?t=92951)

~Ice*shOt 05-22-2009 12:25

make a ranks for mod
 
PHP Code:

public skill(id)
{
switch (
Level[id])
{
case 
0First 0;
case 
1First 1;
case 
2First 2;
case 
3Runner 3;
case 
4Runner 4;
case 
5Runner 5;
case 
6SuperNatural 6;
case 
7SuperNatural 7;
case 
8SuperNatural 8;
case 
9Tank 9;
case 
10Tank 10;
case 
11Tank 11;
case 
12xTNTx 12;
case 
13xTNTx 13;
case 
14xTNTx 14;
case 
15Hunter 15;
case 
16Hunter 16;
case 
17Hunter 17;
case 
18Mystic 18;
case 
19Mystic 19;
}


I getting four error's with this code
Quote:

Welcome to the AMX Mod X 1.8.1-300 Compiler.Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Teamtest.sma(228) : error 017: undefined symbol "Level"test.sma(228) : error 029: invalid expression, assumed zerotest.sma(228) : error 029: invalid expression, assumed zerotest.sma(228) : fatal error 107: too many error messages on one lineCompilation aborted.4 Errors.Done.ERROR: Your plugin failed to compile, see above.Please note that the silly compiler still tried to output a compiled plugin, but since it would be broken,the webcompiler caught it, and won't let you download it.
error's on line:
PHP Code:

switch (Level[id]) 

Can help me ??

Xellath 05-22-2009 12:42

Re: make a ranks for mod
 
What are you trying to do?

If you are trying to make a XP mod, or something along those lines.. I suggest that you should read a XP mod tutorial.
Not to be rude or anything, but obviously you don't know what you're doing.

~Ice*shOt 05-22-2009 12:49

Re: make a ranks for mod
 
lol, i make a rank's that when the up level that rank change

Xellath 05-22-2009 12:54

Re: make a ranks for mod
 
Like a class?, there we go. GO read a XP mod tutorial, you will find the answers there.

[offTOPIC]
"Lol?" - WHAT are you lol'ing at?!
[/offTOPIC]

~Ice*shOt 05-22-2009 13:11

Re: make a ranks for mod
 
lol = :D ^^ I making a ranks not class!

fysiks 05-22-2009 17:36

Re: make a ranks for mod
 
Quote:

Originally Posted by Xellath (Post 832485)
Not to be rude or anything, but obviously you don't know what you're doing.

He knows that, he's been told a million times already. He doesn't know how to indent either.

Owyn 05-22-2009 17:49

Re: make a ranks for mod
 
Quote:

He doesn't know how to indent either.
he doesn't know how to define things either xD that's no use

larito 05-22-2009 18:01

Re: make a ranks for mod
 
you donīt think the variable "Level[33]"?

~Ice*shOt 05-23-2009 01:05

Re: make a ranks for mod
 
No longer was all found


All times are GMT -4. The time now is 01:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.