18.06.2010, 14:46
Код:
if(Mobile[playerid] == 1180) { if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREEN, "[KХNE] ABC Stuudio: Mis sa reklaamida tahaksid?"); return 0; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(text); while ((idx < length) && (text[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = text[idx]; idx++; } result[idx - offset] = EOS; if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1)) { format(string, sizeof(string), "Please try again later %d seconds between Advertisements!", (addtimer/1000)); SendClientMessage(playerid, COLOR_GRAD2, string); return 1; } new payout = idx * 10; if(GetPlayerMoney(playerid) < payout + 200) { format(string, sizeof(string), "* You used %d characters which cost $%d, you don't have enough.", offset, payout); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); Mobile[playerid] = 255; return 1; } SafeGivePlayerMoney(playerid, - payout); SafeGivePlayerMoney(playerid, - 200); FirmaInfo[4][sbTill] += payout + 200; ExtortionSBiz(4, payout + 200); format(string, sizeof(string), "[REKLAAM] %s. Number: %d.", result, PlayerInfo[playerid][pPnumber]); OOCNews(TEAM_GROVE_COLOR,string); format(string, sizeof(string), "~r~Paid $%d~n~~w~Message contained: %d Characters~n~~w~Plus ~g~200$~w~ for ad through phone", payout, idx); GameTextForPlayer(playerid, string, 5000, 1); if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;} Mobile[playerid] = 255; }
and i write
Selling car for 250000 cash!
then entering, showing:
[RECLAM] car for 250000 cash!
When i do:
asd Selling car for 250000 cash!
then shows
[RECLAM] Selling car for 250000 cash!
how do make it without that asd or anything? Must be:
Selling car for 250000 cash!
then shows:
[RECLAM] Selling car for 250000 cash!
not
[RECLAM] car for 250000 cash!