#1

Removed
Reply
#2

How do you declare and assign pName?
Reply
#3

Removed
Reply
#4

I suspect the PropOwner declaration is faulty.
In the enum you use with PropInfo, add [24] after PropOwner - if you haven't already.
Reply
#5

pawn Код:
strcat( ( PropInfo[ID][PropOwner][0]='\0', PropInfo[ID][PropOwner] ), pName, sizeof(pName));
or

pawn Код:
GetPlayerName(playerid,PropInfo[ID][PropOwner],MAX_PLAYER_NAME);
EDIT:
Ups fail ;d do what LarzI say
Reply
#6

Quote:
Originally Posted by LarzI
Посмотреть сообщение
I suspect the PropOwner declaration is faulty.
In the enum you use with PropInfo, add [24] after PropOwner - if you haven't already.
Add [MAX_PLAYER_NAME] instead of [24] after PropOwner, as OP might have #undef and #define'd it to something else, or the script he's working on has. Just as a precaution and a dynamic scripting measure.
Reply
#7

Quote:
Originally Posted by maramizo
Посмотреть сообщение
Add [MAX_PLAYER_NAME] instead of [24] after PropOwner, as OP might have #undef and #define'd it to something else, or the script he's working on has. Just as a precaution and a dynamic scripting measure.
MAX_PLAYER_NAME is defined as a macro to 24 - and 24 is the longest a player name can be. There's no difference if he uses MAX_PLAYER_NAME or 24 UNLESS he did, as you said, #undef and re-define it to something else - something I find highly unlikely.
Reply
#8

Quote:
Originally Posted by LarzI
Посмотреть сообщение
MAX_PLAYER_NAME is defined as a macro to 24 - and 24 is the longest a player name can be. There's no difference if he uses MAX_PLAYER_NAME or 24 UNLESS he did, as you said, #undef and re-define it to something else - something I find highly unlikely.
I'm not arguing about what's best, it's an obvious fact.
He can undefine it then define to 15, then we have 9 wasted character spots, why? It's best if it's dynamic, correct?
Reply
#9

Quote:
Originally Posted by maramizo
Посмотреть сообщение
I'm not arguing about what's best, it's an obvious fact.
He can undefine it then define to 15, then we have 9 wasted character spots, why? It's best if it's dynamic, correct?
Yes of course, but unless he never intends to re-define the macro, he would waste time typing in MAX_PLAYER_NAME every time (which takes ~4 seconds) instead of doing just 24 (which takes ~0.3 second). It's all about time efficiency!
Reply
#10

Thank you guys
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)