Help With Quickstrings
#2

Firstly find the pos using https://sampwiki.blast.hk/wiki/Strfind . Then delete the veh part using https://sampwiki.blast.hk/wiki/Strdel . Then we will insert the right $veh thing using https://sampwiki.blast.hk/wiki/Strins. Also, Nice copying crazybobs .

EDIT (Example):

pawn Код:
public OnPlayerText(playerid, text[])
{
  new Check = strfind(text, "$veh");
  if(Check != -1)
  {
    strdel(text, Check, Check + 3);
    new Str[56];
    format(Str, sizeof(Str), "%s", /*VehicleNamesList*/);
    strins(text,str, Check);
  }
  return 1;
}
Reply


Messages In This Thread
Help With Quickstrings - by [03]Garsino - 31.01.2010, 09:37
Re: Help With Quickstrings - by [HiC]TheKiller - 31.01.2010, 09:40
Re: Help With Quickstrings - by [03]Garsino - 31.01.2010, 09:53
Re: Help With Quickstrings - by [03]Garsino - 31.01.2010, 10:01
Re: Help With Quickstrings - by [HiC]TheKiller - 31.01.2010, 10:03
Re: Help With Quickstrings - by [03]Garsino - 31.01.2010, 10:41
Re: Help With Quickstrings - by [HiC]TheKiller - 31.01.2010, 21:48

Forum Jump:


Users browsing this thread: 3 Guest(s)