12.05.2016, 12:52
can someone please make me a CMD to show next paycheck time left??
Line 1239:-YCMD:nextpaycheck(playerid, params[], help) {
Line 1240:-new string[128];
Line 1241:-new PlayerInfo;
Line 1242:-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));
Line 1243:-SendClientMessage(playerid, COLOR_YELLOW, string);
Line 1244:-SendClientMessage(playerid, COLOR_GRAD2, "Please note that you will not accrue time if your game is paused.");
Line 1245:-return 1;
Line 1246:-}
wcrp\rp.pwn(1242) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"
wcrp\rp.pwn(1242) : warning 215: expression has no effect
wcrp\rp.pwn(1242) : error 001: expected token: ";", but found "]"
wcrp\rp.pwn(1242) : error 029: invalid expression, assumed zero
wcrp\rp.pwn(1242) : 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.