A little help..
#1

GetPlayerName(playerid, name, 24);
pInfo[playerid][pName] = name;

I get the following error: error 006: must be assigned to an array

what's wrong? D:
Reply
#2

What does Your define for pName Look like?
Reply
#3

Use strmid
Reply
#4

'name' is a string, so I would recommend doing :
pawn Код:
format(pInfo[playerid][pName], sizeof(pInfo[playerid][pName]), "%s", name);
Oh and remember to define your pName as a string also:P
Reply
#5

Quote:
Originally Posted by Dujma
Use strmid
Mind showing an example?
pawn Код:
enum Info
{ // Removed other stuff.
    pName,
    IP
};
new pInfo[MAX_PLAYERS][Info];
This is how the 'pInfo' code looks.
Reply
#6

change pName, to
pawn Код:
pName[24],
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)