28.05.2016, 06:56
Hello, i made this CMD to show the time left in next paycheck:-
but it gives this error:-
the lines getting error is this:-
kindly tell me how to fix this CMD!
PHP код:
CMD:nextpaycheck(playerid, params[])
{
new string[128];
format(string, sizeof(string), "Total Minutes since last Paycheck: %d Approximate time until next Paycheck: %d", floatround(PlayerInfo[playerid][pConnectSeconds]/60), floatround((3600-PlayerInfo[playerid][pConnectSeconds]) / 60));
SendClientMessageEx(playerid, COLOR_YELLOW, string);
SendClientMessageEx(playerid, COLOR_GRAD2, "Please note that you will not accrue time if your game is paused.");
return 1;
}
PHP код:
D:\michaelwcrp\filterscripts\Command(2).pwn(94) : error 017: undefined symbol "PlayerInfo"
D:\michaelwcrp\filterscripts\Command(2).pwn(94) : warning 215: expression has no effect
D:\michaelwcrp\filterscripts\Command(2).pwn(94) : error 001: expected token: ";", but found "]"
D:\michaelwcrp\filterscripts\Command(2).pwn(94) : error 029: invalid expression, assumed zero
D:\michaelwcrp\filterscripts\Command(2).pwn(94) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PHP код:
format(string, sizeof(string), "Total Minutes since last Paycheck: %d Approximate time until next Paycheck: %d", floatround(PlayerInfo[playerid][pConnectSeconds]/60), floatround((3600-PlayerInfo[playerid][pConnectSeconds]) / 60));