Paycheck CMD
#1

can someone please make me a CMD to show next paycheck time left??
Reply
#2

Would help if you handed out some code to aid in making this command, but you know, Scripting Help isn't really for making you a command...


But if someone was going to be kind, then they'd need some basis to go on, rather than nothing and guess everything.
Reply
#3

kindly, someone help me!
Reply
#4

« Would help if you handed out some code to aid in making this command, but you know, Scripting Help isn't really for making you a command...
But if someone was going to be kind, then they'd need some basis to go on, rather than nothing and guess everything. » - Sew_Suni
Reply
#5

Quote:
Originally Posted by Travalle
Посмотреть сообщение
kindly, someone help me!
Chuck up your code from your paycheck lol... You gotta put some code up hehe.
Reply
#6

Listen This is the code:-
PHP код:
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:-} 
And i am getting this error:-
PHP код:
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
. 
Reply
#7

Show your PlayerInfo enum.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)