12.08.2014, 07:11
hey guys, i recently made a dialog option for all my stores allowing them to be robbed.
it all works perfect except 1 part, i can't seem to get the script to announce to the entire server exactly how much money that player has robbed from the store.
here is a snippet of my code and most likely where the problem might be:
what have i done wrong?
it all works perfect except 1 part, i can't seem to get the script to announce to the entire server exactly how much money that player has robbed from the store.
here is a snippet of my code and most likely where the problem might be:
Код:
new string[64]; new pname[MAX_PLAYER_NAME]; new pcash = GivePlayerMoney(playerid, random(5000) + 10000); GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s(%d) Robbed $%i From The 24-7!", pname, playerid, pcash); SendClientMessageToAll(0xAAAAAAAA, string); SetPVarInt(playerid,"WaitBeforeRobbing",GetTickCount()+30000); SetPlayerWantedLevel(playerid, 6); SetPlayerColor(playerid, 0xAA3333AA);