09.07.2012, 05:29
Why the length 250 I believe there is no place with that too damn long name. 64 or even 32 are enough for a place name I guess.
Edit:
Oops
Check this
Edit:
Oops
Check this
pawn Код:
// Somewhere you used GivePlayerRobberyAmount like this
GivePlayerRobberyAmount(playerid, 1000, 2, "Cluckin Bell");
// the stock
stock GivePlayerRobberyAmount(playerid, amount, stars, place[])
{
SetPlayerWantedLevel(playerid, stars);
GivePlayerMoney(playerid, amount);
// Example to send a message to all that the place has been robbed with info
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "%s has stolen %d from %s and has %d stars now!", name, amount, place, stars);
SendClientMessageToAll(-1, str);
return 1;
}