My System
#1

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)