Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

/nextpaycheck error

$
0
0
Hello, i made this CMD to show the time left in next paycheck:-
PHP Code:

CMD:nextpaycheck(playeridparams[])
{
    new 
string[128];
    
format(stringsizeof(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(playeridCOLOR_YELLOWstring);
    
SendClientMessageEx(playeridCOLOR_GRAD2"Please note that you will not accrue time if your game is paused.");
    return 
1;


but it gives this error:-
PHP Code:

D:\michaelwcrp\filterscripts\Command(2).pwn(94) : error 017undefined symbol "PlayerInfo"
D:\michaelwcrp\filterscripts\Command(2).pwn(94) : warning 215expression has no effect
D
:\michaelwcrp\filterscripts\Command(2).pwn(94) : error 001expected token";"but found "]"
D:\michaelwcrp\filterscripts\Command(2).pwn(94) : error 029invalid expressionassumed zero
D
:\michaelwcrp\filterscripts\Command(2).pwn(94) : fatal error 107too many error messages on one line

Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


4 Errors


the lines getting error is this:-
PHP Code:

format(stringsizeof(string), "Total Minutes since last Paycheck: %d  Approximate time until next Paycheck: %d"floatround(PlayerInfo[playerid][pConnectSeconds]/60), floatround((3600-PlayerInfo[playerid][pConnectSeconds]) / 60)); 

kindly tell me how to fix this CMD!

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>