SA-MP Forums Archive
Must be assigned to Array - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Must be assigned to Array (/showthread.php?tid=444550)



Must be assigned to Array - ExtremeReality - 17.06.2013

error 006: must be assigned to an array

(PlayerInfo[playerid][pAdminName] = newname); < There's the line

Could somebody help me fix this possibly over teamviewer?


Re: Must be assigned to Array - Pottus - 17.06.2013

Post more code, we need to see.

enum
and any other variables used


Re: Must be assigned to Array - ExtremeReality - 17.06.2013

I dont want my code to get stolen/leaked, could someone teamviewer with me and help me fix it?


Re: Must be assigned to Array - ExtremeReality - 17.06.2013

Look, I need help...
PM me for teamviewer details
Skype > rossbysouth


Re: Must be assigned to Array - Pottus - 17.06.2013

Quote:
Originally Posted by ExtremeReality
Посмотреть сообщение
I dont want my code to get stolen/leaked, could someone teamviewer with me and help me fix it?
What good is a small snippet of code to steal ?


Re: Must be assigned to Array - ExtremeReality - 17.06.2013

Well, I PM'ed you... Its a command I added and I dont want people to steal it or leak it
Im hoping to improve my server alot more then it already is


Re: Must be assigned to Array - Jewell - 17.06.2013

pAdminName must be an array. I guess, in enum you did it like this.


pawn Код:
enum //..
{
    pAdminName
};
should be.

pawn Код:
enum //..
{
    pAdminName [24] // max player name length
};

or may be there is a no pAdminName in your enum.