Where is the problem?
#1

Hi,

Where is the problem?
Errors:

Quote:

C:\Program Files\gamemodes\myserver.pwn(681) : error 022: must be lvalue (non-constant)
C:\Program Files\gamemodes\myserver.pwn(681) : warning 215: expression has no effect
C:\Program Files\gamemodes\myserver.pwn(681) : error 001: expected token: ";", but found ")"
C:\Program Files\gamemodes\myserver.pwn(681) : error 029: invalid expression, assumed zero
C:\Program Files\gamemodes\myserver.pwn(681) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Script:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetupPlayerForClassSelection(playerid);
    gClass[playerid] = classid;
   
    if(classid == 133 || classid == 134 || classid == 135) {
        GameTextForPlayer(playerid,"~g~Spawn 1",5000,5);
    } else if(classid == 140 || classid == 141 || classid = 142) {
      GameTextForPlayer(playerid,"~r~Spawn 2",5000,5);
    } else if(classid == 200 || classid == 201) {
        GameTextForPlayer(playerid,"~p~Spawn 3",5000,5);
    }
    return 1;
}
Reply
#2

Quote:
Originally Posted by Oregon_Science
pawn Код:
else if(classid == 140 || classid == 141 || classid = 142)
pawn Код:
else if(classid == 140 || classid == 141 || classid == 142)
Reply
#3

Oh this st*** little details

Thanks!
Reply
#4

(Sorry for dubble post)

Hmmm after compiling all works fine. But when coming ingame i scroll between the classes and i see only
Spawn 1 and Spawn 3 (I mean gametext)
... and weird is also that it is like on a random skin (Like it doesn't look what skin it is, just gametext it)

:S
Reply
#5

And
Someone have an idea for it ?!?

Help me please
Reply
#6

ah it shows the gametext for the right classids not for the skins
"Spawn 1" will be shown at class 133, 134, 135
"Spawn 2" at classid 140, 141, 142
"Spawn 3" at classid 200, 201

I think that you mixed up classid with skinid because for that you need to have more as 200 calls of AddPlayerClass
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)