SA-MP Forums Archive
Don't understand this emm... - 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)
+--- Thread: Don't understand this emm... (/showthread.php?tid=432872)



Don't understand this emm... - RandomDude - 24.04.2013

Quote:

C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\Clan Script.pwn(257) : error 029: invalid expression, assumed zero
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\Clan Script.pwn(257) : warning 215: expression has no effect
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\Clan Script.pwn(257) : error 001: expected token: ";", but found "]"
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\Clan Script.pwn(257) : error 029: invalid expression, assumed zero
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\Clan Script.pwn(257) : fatal error 107: too many error messages on one line

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


4 Errors.

Line 257
pawn Код:
pS[UseClanSkin] = 0;
pawn Код:
#define pS [playerid]
I have defined Ps so why?? -_-
here is it in the full thing :P
pawn Код:
public OnPlayerConnect(playerid)
{
    pS[UseClanSkin] = 0;
    pS[Clan]        = Negative;
    pS[ClanRequest] = Negative;
    pS[Spawned]     = 0;
    return 1;
}



Re: Don't understand this emm... - zDivine - 24.04.2013

You defined pS as playerid.

Try doing this.
pawn Код:
new UseClanSkin[MAX_PLAYERS] = 0;



Re: Don't understand this emm... - RandomDude - 24.04.2013

I have that already in playerstats
pawn Код:
enum PlayerStatus
{
    ClanRequest,
    bool:ListDialog,
    SpawnPoint,
    Clan,
    Rank,
    FileName[128],
    UseClanSkin
};