Player is = GangBossId - 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: Player is = GangBossId (
/showthread.php?tid=246258)
Player is = GangBossId -
aqu - 03.04.2011
Hi,I want to make that if "grovegangboss = 1" and "player skin = 270" and "player team is "TEAM_GROVE" he will be "grovegangbossID".
I was making like that:
Код:
new grovebossid[MAX_PLAYERS];
grovebossid[playerid] == if(grovegangboss == 1 && gTeam[playerid] == TEAM_GROVE && GetPlayerSkin(playerid, 270));
,but:
Код:
C:\Users\bendra\Desktop\SampORGserver\gamemodes\LSxTW.pwn(1247) : error 029: invalid expression, assumed zero
C:\Users\bendra\Desktop\SampORGserver\gamemodes\LSxTW.pwn(1247) : warning 202: number of arguments does not match definition
how to fix it?
Re: Player is = GangBossId -
JaTochNietDan - 03.04.2011
That is a bizzare bit of syntax you've written there, I think this is what you intended.
pawn Код:
if(grovegangboss == 1 && gTeam[playerid] == TEAM_GROVE && GetPlayerSkin(playerid) == 270)
grovebossid[playerid] = 1;
Although I'm not sure exactly what you want the value of the grovebossid array to be in the specified cell.
I suggest you read the official PAWN documentation over at CompuPhase.