SA-MP Forums Archive
A Little bit! help please =]! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A Little bit! help please =]! (/showthread.php?tid=247448)



A Little bit! help please =]! - Ben7544 - 09.04.2011

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.


Re: A Little bit! help please =]! - Sascha - 09.04.2011

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


Re: A Little bit! help please =]! - Lorenc_ - 09.04.2011

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


Re: A Little bit! help please =]! - Ben7544 - 09.04.2011

Well, thank you both.

I really appreaciate it =]!