Player is = GangBossId
#1

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?
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)