A Little bit! help please =]!
#1

I got those five warnings :

PHP код:
C:\Documents and Settings\gidon\щемзп дтбегд\SpikeStrip.pwn(32) : warning 202number of arguments does not match definition
C
:\Documents and Settings\gidon\щемзп дтбегд\SpikeStrip.pwn(43) : warning 202number of arguments does not match definition
C
:\Documents and Settings\gidon\щемзп дтбегд\SpikeStrip.pwn(53) : warning 202number of arguments does not match definition
C
:\Documents and Settings\gidon\щемзп дтбегд\SpikeStrip.pwn(52) : warning 204symbol is assigned a value that is never used"DepartmentLeader"
C:\Documents and Settings\gidon\щемзп дтбегд\SpikeStrip.pwn(29) : warning 204symbol is assigned a value that is never used"PlayerSkinOfficer" 
Amm, here's the script lines :

Line 29 :

PHP код:
    PlayerSkinOfficer 282 || 286 || 287 || 288 || 283 || 281 || 280 || 282 || 288 || 265 || 266 || 267
Line 32 :

PHP код:
        if(GetPlayerSkin(playeridPlayerSkinOfficer)) 
Line 43 :

PHP код:
        if(GetPlayerSkin(playeridPlayerSkinOfficer)) 
Line 52 :

PHP код:
        DepartmentLeader 282 || 283

Line 53 :

PHP код:
        if(GetPlayerSkin(playeridDepartmentLeader)) 

Thank you.
Reply
#2

pawn Код:
new PlayerSkinOfficer[] =
{
  282, 286, 287, 288, 283, 281, 280, 282, 288, 265, 266, 26
};
pawn Код:
for(new n=0; n<sizeof(PlayerSkinOfficer); n++)
{
  if(GetPlayerSkin(playerid) == PlayerSkinOfficer[n])
}
and same for the rest
Reply
#3

the assigning thing variable looks wrong.

"PlayerSkinOfficer = 282 || 286 || 287 || 288 || 283 || 281 || 280 || 282 || 288 || 265 || 266 || 267; "

|| is only used in many statments, like the if statement.

Create an Array:
new PlayerSkinOfficer[] = { 282, 286, 287, 288, 283, 281, 280, 282, 288, 265, 266, 267 }

Edit: im late
Reply
#4

Well, thank you both.

I really appreaciate it =]!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)