07.07.2014, 03:06
Yes... I'm shocked I didn't see it before. You have this line in there, when it's just a standard variable while you have it defined as a player-based variable. You attempted to: 1) write a string in a SendClientMessage. 2) Tried to define cash as a string. Try this:
pawn Код:
public robstore(playerid)
{
new string[128];
robpossible = 0;
new cash = random(5000);
TogglePlayerControllable(playerid, true);
GivePlayerMoney(playerid, cash);
format(string, sizeof(string), "[ROBBERY]:{FFFFFF}You have robbed $%d from the store.",cash);
SendClientMessage(playerid, COLOR_ORANGE, string);
SetTimer("afterrob", 120000, false);
return 1;
}