error 017: undefined symbol "FPS" warning 215: expression has no effect error 001: expected token: ";", but found "]" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line
CMD:fps( playerid, params[ ] )
{
gsString[ 0 ] = EOS;
format( gsString, sizeof( gsString ), "%s\n{375FFF}%s{00FF19}[FPS:%d]"YE"[Ping:%d]", gsString, PlayerName(playerid), FPS[ playerid ], GetPlayerPing( playerid ) );
ShowPlayerDialog( playerid, DIALOG_EMPTY, DIALOG_STYLE_MSGBOX, ""NAME_S" "W"- Video FPS", gsString, "(Exit)", "" );
return ( 1 );
}
|
What is your previous Command? i think you have forgotten to put return 1 or return 0 in it!
OR you have put return value at wrong position.... if possible post your previous command here! |
CMD:jetpack( playerid, params[ ] )
{
VipCheck( playerid, 3 );
SetPlayerSpecialAction( playerid, 2 );
return ( 1 );
}
|
here you go
Код:
CMD:jetpack( playerid, params[ ] )
{
VipCheck( playerid, 3 );
SetPlayerSpecialAction( playerid, 2 );
return ( 1 );
}
|
CMD:jetpack(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 3 && PlayerInfo[playerid][pAdmin] < 4) {
JetPack[playerid] = 1;
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
return 1;
}
new JetPack[MAX_PLAYERS];
new FPS[MAX_PLAYERS];
|
try,
Код:
CMD:jetpack(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 3 && PlayerInfo[playerid][pAdmin] < 4) {
JetPack[playerid] = 1;
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
return 1;
}
Код:
new JetPack[MAX_PLAYERS]; EDIT: have you made a variable at top of your script ? Код:
new FPS[MAX_PLAYERS]; |

error 017: undefined symbol "FPS"
![]() The problem is in FPS command dude -,-, not in Jetpack command, And Код:
error 017: undefined symbol "FPS" |