public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/test", cmdtext, true, 10) == 0) { new Year, Month, Day; getdate(Year, Month, Day); printf("%02d/%02d/%d", Day, Month, Year); if(fap[playerid] == 1)return ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Notice", "You already connected to the server", "Close", ""); if(Month == 01 && Year == 2015 && Day == 01) { fap[playerid] = 1; ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Notice", "You connected to the server", "Close", ""); } else { ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Notice", "You disconnected from the server", "Close", ""); } if(yeah[playerid] == 1)return ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Notice", "You already connected to the server2", "Close", ""); if(Month == 01 && Year == 2015 && Day == 02) { yeah[playerid] = 1 ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Notice", "You connected to the server2", "Close", ""); // line 80 } else { ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Notice", "You disconnected from the server2", "Close", ""); } return 1; } return 0; }
F:\(0.3z) Crazy - Server Pack\filterscripts\senpai2.pwn(80) : error 001: expected token: ";", but found "-identifier-" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
yeah[playerid] = 1// here's the offender
yeah[playerid] = 1; |