Posts: 3,351
Threads: 780
Joined: Jan 2010
This are the errors:
error 001: expected token: ";", but found "-identifier-"
error 028: invalid subscript (not an array or too many subscripts): "bupm"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line
And this is the line:
pawn Код:
format(b, sizeof(b), "- SUCCESS ROBBERY - Wanted Level %d - Robbed %i$",plwl,bupm[playerid]);
I've declared bupm and plwl but idk it gives me that errors.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Show the line above that, and the declaration if bupm. Also, naming a string 'b' is bad, you should name variables properly.
Posts: 2,169
Threads: 206
Joined: Jul 2010
Reputation:
0
Mind showing the variable "bupm[playerid]".
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Show the line above that, and the declaration if bupm. Also, naming a string 'b' is bad, you should name variables properly.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Yeah happened to both of us..
Posts: 3,351
Threads: 780
Joined: Jan 2010
Here is:
pawn Код:
KillTimer(pBupTimerID[playerid]);
new bupm = 70000 + random(250000);
GivePlayerMoney(playerid,bupm);
new plwl = GetPlayerWantedLevel(playerid);
plwl = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid,plwl +10);
new b[170];
format(b, sizeof(b), "Shop bombed and also robbed %i$! NOW RUN! IT WILL EXPLODE IN 10 SECONDS!! - Wanted Level: %d",bupm[playerid],plwl);
SendClientMessage(playerid,red,b);
GameTextForPlayer(playerid, "Bombing ~r~COMPLETE! RUN NOW! IT WILL EXPLODE ALL IN 10 SECONDS!!", 5000, 5);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 5);
IsBombing[playerid] =0;
new string3[170];
new current_zone;
current_zone = player_zone[playerid];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), "- SHOP BOMBING - %s (%d) has bombed a store and also robbed %i$ from %s",name,playerid,bupm[playerid],zones[current_zone][zone_name]);
SendClientMessageToAll(COLOR_WHITE,string3);
BombLog(string3);
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Why did you put [playerid]? You didn't declare any dimensions ([MAX_PLAYERS]).
Posts: 966
Threads: 5
Joined: Jul 2011
Reputation:
0
bupm is not an array of any kind. It is a single variable, so treat it like one.
Delete the [playerid] off it or explain in greater detail what it is that you're trying to do.
Posts: 3,351
Threads: 780
Joined: Jan 2010