SplitText doesnt work + Object doesnt attach
#1

1 -
SplitText (here is the stock
pawn Код:
stock SplitText(Float:Prox, playerid, text[])
{
     new string[256], Length = strlen(text) ;
     if(Length > 135)
     {
          new string2[ 1024 ];
          new string3[ 1024 ];
          //
          strmid(string, text, 0, Length / 2);
          format(string2, sizeof(string2), "%s says: %s ...", GetName(playerid), string);
          ProxDetector(Prox, playerid, string2, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
          strmid(string, text, Length / 2, Length);
          format(string3, sizeof(string3), "... %s", string);
          ProxDetector(Prox, playerid, string3, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
     }
     else
     {
          new string4[ 1024 ];
          format(string4, sizeof(string4), "%s says: %s", GetName(playerid), text);
          ProxDetector(Prox, playerid, string4, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
     }
}
Doesnt work. I mean, it does half of the job, it makes the things of the else{, but does not make a new line.. It just makes it like the normal thing.. Long line and thats it.

2 - I made something of tazer and it gives an object to the player's hand but the problem - No object appears. (1-The index is only used for the tazer, no other objects use this index. 2- I havent update RC5. I am on RC3 files, if it matters)
pawn Код:
if(Tazer[playerid] == 0){ Tazer[playerid] = 1; SetPlayerAttachedObject(playerid, 9, 18642, 6, 0.047253, 0.018269, 0.068153, 172.732482, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);}
Reply


Messages In This Thread
SplitText doesnt work + Object doesnt attach - by KfirRP - 02.08.2011, 13:10
Re: SplitText doesnt work + Object doesnt attach - by KfirRP - 02.08.2011, 16:18
Re: SplitText doesnt work + Object doesnt attach - by =WoR=Varth - 03.08.2011, 03:23
Re: SplitText doesnt work + Object doesnt attach - by KfirRP - 03.08.2011, 06:27
Re: SplitText doesnt work + Object doesnt attach - by KfirRP - 03.08.2011, 10:00
Re: SplitText doesnt work + Object doesnt attach - by KfirRP - 03.08.2011, 19:26
Re: SplitText doesnt work + Object doesnt attach - by =WoR=Varth - 04.08.2011, 01:42

Forum Jump:


Users browsing this thread: 1 Guest(s)