3469 dcmd_stats(playerid,params[])
3470 {
3471 #pragma unused params
3472 new statz[1024];
3473 format(statz, sizeof (statz),
3474 "Score: %d\nBank: %d\nMoney: $%d\nAdmin: %d\nArmy: %d\nSWAT: %d\nRegular: %d\nTerrorLVL: 3475%d\nRobbberLVL: %d\nC4: %d\nRope: %d",
3476 GetPlayerScore[playerid], BankCash[playerid], GetPlayerMoney[playerid], AdminLevel[playerid], 3477CanUseArmy[playerid], CanUseSWAT[playerid],
3478 IsRegularPlayer[playerid], TerroristSkill[playerid], RobSkill[playerid], HasC4[playerid], HasRope[playerid]);
3479 ShowPlayerDialog(playerid,644,DIALOG_STYLE_MSGBOX,"Stats",statz,"Close","");
3480 return 1;
3481 }
:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3473 -- 3475) : error 028: invalid subscript (not an array or too many subscripts): "GetPlayerScore"
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3475) : warning 215: expression has no effect
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3475) : error 001: expected token: ";", but found "]"
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3475) : error 029: invalid expression, assumed zero
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3475) : 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.
dcmd_stats(playerid,params[])
{
#pragma unused params
new statz[1024],coordsstring[512];
format(statz, sizeof(statz),"Score: %d\nBank: %d\nMoney: $%d\nAdmin: %d\nArmy: %d\nSWAT: %d\n",GetPlayerScore[playerid], BankCash[playerid], GetPlayerMoney[playerid], AdminLevel[playerid], CanUseArmy[playerid], CanUseSWAT[playerid]);
format(coordsstring, sizeof(coordsstring), "» Regular: %d\nTerrorLVL: %d\nRobbberLVL: %d\nC4: %d\nRope: %d", IsRegularPlayer[playerid], TerroristSkill[playerid], RobSkill[playerid], HasC4[playerid], HasRope[playerid]);
strcat(statz,coordsstring);
ShowPlayerDialog(playerid,644,DIALOG_STYLE_MSGBOX,"Stats",statz,"Close","");
return 1;
}
Hello, Try this
PHP код:
|
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3473) : error 028: invalid subscript (not an array or too many subscripts): "GetPlayerScore"
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3473) : warning 215: expression has no effect
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3473) : error 001: expected token: ";", but found "]"
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3473) : error 029: invalid expression, assumed zero
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3473) : 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.
GetPlayerScore[playerid], ..., GetPlayerMoney[playerid]
GetPlayerScore(playerid), ..., GetPlayerMoney(playerid)
pawn Код:
pawn Код:
|
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3473) : error 012: invalid function call, not a valid address
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3473) : warning 215: expression has no effect
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3473) : error 001: expected token: ";", but found ")"
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3473) : error 029: invalid expression, assumed zero
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(3473) : fatal error 107: too many error messages on one line
dcmd_stats(playerid,params[])
{
#pragma unused params
new statz[1024],coordsstring[512];
format(statz, sizeof(statz),"Score: %d\nBank: %d\nMoney: $%d\nAdmin: %d\nArmy: %d\nSWAT: %d\n",GetPlayerScore(playerid), BankCash[playerid], GetPlayerMoney(playerid), AdminLevel[playerid], CanUseArmy[playerid], CanUseSWAT[playerid]);
format(coordsstring, sizeof(coordsstring), "» Regular: %d\nTerrorLVL: %d\nRobbberLVL: %d\nC4: %d\nRope: %d", IsRegularPlayer[playerid], TerroristSkill[playerid], RobSkill[playerid], HasC4[playerid], HasRope[playerid]);
strcat(statz,coordsstring);
ShowPlayerDialog(playerid,644,DIALOG_STYLE_MSGBOX,"Stats",statz,"Close","");
return 1;
}
try to change juste the samp function
PHP код:
|
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(12951) : error 029: invalid expression, assumed zero
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(12951) : warning 215: expression has no effect
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(12951) : error 001: expected token: ";", but found "]"
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(12951) : error 029: invalid expression, assumed zero
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\gamemodes\NLCNR.pwn(12951) : 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.