SA-MP Forums Archive
My System - 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: My System (/showthread.php?tid=563681)



My System - JordanDoughty - 16.02.2015

I have made a temp-VIP system into a script, but I get errors and not sure why.

pawn Код:
new d,m,y;
        getdate(y,m,d);

        if(PlayerInfo[playerid][pDonatorYear] != 0 && PlayerInfo[playerid][pDonatorMonth] != 0 && PlayerInfo[playerid][pDonatorDay] != 0) {
            if((y>=PlayerInfo[playerid][pDonatorYear] &&  m=>PlayerInfo[playerid][pDonatorMonth] && d=>PlayerInfo[playerid][pDonatorDay])) {
                PlayerInfo[playerid][pDonator] = 0;
                PlayerInfo[playerid][pDonatorTime] = 0;
                PlayerInfo[playerid][pDonatorYear] = 0;
                PlayerInfo[playerid][pDonatorMonth] = 0;
                PlayerInfo[playerid][pDonatorDay] = 0;
            }
        }
Код:
C:\Users\Jordan\Desktop\testing\gamemodes\testing.pwn(40212) : error 022: must be lvalue (non-constant)
C:\Users\Jordan\Desktop\testing\gamemodes\testing.pwn(40212) : error 022: must be lvalue (non-constant)
C:\Users\Jordan\Desktop\testing\gamemodes\testing.pwn(40212) : error 029: invalid expression, assumed zero
C:\Users\Jordan\Desktop\testing\gamemodes\testing.pwn(40212) : fatal error 107: too many error messages on one line

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


4 Errors.



Re: My System - JordanDoughty - 16.02.2015

Quote:
Originally Posted by ******
Посмотреть сообщение
3) Actually, it is probably the "=>" instead of ">=".
Thank you!