HELP!!!!!!
#10

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;
}
Reply


Messages In This Thread
HELP!!!!!! - by 9noober - 07.07.2014, 02:27
Re: HELP!!!!!! - by nmader - 07.07.2014, 02:32
Re: HELP!!!!!! - by VenomMancer - 07.07.2014, 02:34
Re: HELP!!!!!! - by 9noober - 07.07.2014, 02:35
Re: HELP!!!!!! - by 9noober - 07.07.2014, 02:37
Re: HELP!!!!!! - by nmader - 07.07.2014, 02:42
Re: HELP!!!!!! - by 9noober - 07.07.2014, 02:49
Re: HELP!!!!!! - by nmader - 07.07.2014, 02:54
Re: HELP!!!!!! - by 9noober - 07.07.2014, 03:00
Re: HELP!!!!!! - by nmader - 07.07.2014, 03:06

Forum Jump:


Users browsing this thread: 3 Guest(s)