03.09.2014, 02:01
Hey guys, I haven't been scripting for a LONG LONG time and I'm really confused at the moment, I ran into some errors.
Basically I'm editing a script and I'd like to add the player's name to an .ini file.
Players can put down objects and I'd like to know who put them down by displaying it in the object's .ini file
The Code I use(everything else is written in the ini file, I'm trying to add this):
The GetName(playerid) wasn't created by me but it works with other commands.:
The error code I get when trying to compile:
Any help is appreciated, thank you very much in advance!
Basically I'm editing a script and I'd like to add the player's name to an .ini file.
Players can put down objects and I'd like to know who put them down by displaying it in the object's .ini file
The Code I use(everything else is written in the ini file, I'm trying to add this):
pawn Код:
BaseInfo[NewID][bOwner] = GetName(playerid);
pawn Код:
stock GetName(playerid)
{
new string[128];
GetPlayerName(playerid,string,24);
new str[24];
strmid(str,string,0,strlen(string),24);
return str;
}
Код:
error 006: must be assigned to an array