Stock
#2

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

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


Messages In This Thread
Stock - by Chris1337 - 09.07.2012, 03:55
Re: Stock - by [KHK]Khalid - 09.07.2012, 05:29
Re: Stock - by CmZxC - 09.07.2012, 06:22
Re: Stock - by Chris1337 - 09.07.2012, 06:45
Re: Stock - by Chris1337 - 09.07.2012, 06:53

Forum Jump:


Users browsing this thread: 1 Guest(s)