Writing string into variable(enum)
#9

Quote:
Originally Posted by ******
Посмотреть сообщение
The best version of strcpy is:

pawn Код:
#define strcpy(%0,%1) \
    strcat((%0[0] = '\0', %0), %1)
You can still use the third parameter, but now it is optional.
I will use it, if it won't give me errors,
Код:
RP.pwn(467) : error 001: expected token: ")", but found "["
RP.pwn(467) : warning 215: expression has no effect
RP.pwn(467) : error 001: expected token: ";", but found "]"
RP.pwn(467) : error 029: invalid expression, assumed zero
RP.pwn(467) : fatal error 107: too many error messages on one line
467 LINE - strcpy(pInfo[playerid][pPorijeklo], "Hrvatska");

Код:
f(dialogid == DPORIJEKLO){
        if(!response) return KickWithMessage(playerid, RED, "Morate izabrati drzavu iz koje dolazite kako biste se registrovali(Kickovani ste!)");
        if(response){
            if(listitem == 0){
                strcpy(pInfo[playerid][pPorijeklo], "Hrvatska");
                PlayerTextDrawSetString(playerid, registracija[11][playerid], "Hrvatska");
            }
Reply


Messages In This Thread
Writing string into variable(enum) - by hrasch - 15.08.2014, 20:38
Re: Writing string into variable(enum) - by Virtual1ty - 15.08.2014, 21:38
Re: Writing string into variable(enum) - by hrasch - 16.08.2014, 09:08
Re: Writing string into variable(enum) - by CutX - 16.08.2014, 09:14
Re: Writing string into variable(enum) - by Virtual1ty - 16.08.2014, 09:20
Re: Writing string into variable(enum) - by Sarra - 16.08.2014, 09:25
Re: Writing string into variable(enum) - by hrasch - 16.08.2014, 09:54
Re: Writing string into variable(enum) - by Sarra - 16.08.2014, 10:10
Re: Writing string into variable(enum) - by hrasch - 16.08.2014, 10:17
Re: Writing string into variable(enum) - by hrasch - 16.08.2014, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)