error 017: undefined symbol "strcpy"
#1

Anyone who know what is wrong? rep+

i get this error
pawn Код:
error 017: undefined symbol "strcpy"
pawn Код:
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);
                }
            }
        }
    }
Reply


Messages In This Thread
error 017: undefined symbol "strcpy" - by MayaEU - 13.11.2015, 13:34
Re: error 017: undefined symbol "strcpy" - by 7days7 - 13.11.2015, 13:38
Re: error 017: undefined symbol "strcpy" - by DeathCore - 13.11.2015, 13:47
Re: error 017: undefined symbol "strcpy" - by Abagail - 13.11.2015, 18:28
Re: error 017: undefined symbol "strcpy" - by 7days7 - 13.11.2015, 18:47
Re: error 017: undefined symbol "strcpy" - by Abagail - 13.11.2015, 19:01
Re: error 017: undefined symbol "strcpy" - by 7days7 - 13.11.2015, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)