error 017: undefined symbol "strcpy"
if (dialogid == DIALOG_NEWGOWNER)
{
if (response)
{
new ostring[MAX_PLAYER_NAME], astring[128];
strcpy(ostring, gowner[gsaveid[playerid]]);
new plid;
if (sscanf(inputtext, "u", plid)) SendClientMessage(playerid, -1, ""COL_RED"Invalid Player ID/Name");
else if (plid == INVALID_PLAYER_ID) SendClientMessage(playerid, -1, ""COL_RED"Invalid Player");
else
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
if(!strcmp(gowner[gsaveid[playerid]], pname))
{
format(astring, 128, ""COL_WHITE"%s is already the owner of the gate %i", pname, gsaveid[playerid]);
SendClientMessage(playerid, -1, astring);
}
else
{
new INI:gatefile = INI_Open(GateINI(gsaveid[playerid]));
INI_SetTag(gatefile, "data");
INI_WriteString(gatefile, "owner", pname);
INI_Close(gatefile);
if (!strcmp(ostring, "none")) format(astring, 128, ""COL_GREEN"You have set %s to be the owner of the gate %i.", pname, gsaveid[playerid]);
else format(astring, 128, ""COL_GREEN"%s is no longer the owner of the gate %i. %s is the new owner", ostring, gsaveid[playerid], pname);
SendClientMessage(playerid, -1, astring);
}
}
}
}
format(ostring, sizeof(ostring), "%s", gowner[gsaveid[playerid]]); |
strins(ostring, gowner[gsaveid[playerid]], 0); |
stock strcpy(dest[], const source[], maxlength=sizeof dest) return strcat((dest[0] = EOS, dest), source, maxlength);
format(ostring, sizeof(ostring), "%s", gowner[gsaveid[playerid]]);
|
I'm not ever sayed that is the good example. Just example for fix problem nothing more and yea you're right.
|