error: inputtext must be assigned to an array
#1

https://pastebin.com/giC6YUGB

the error is in sInfo[playerid][rpname] = inputtext;
Reply
#2

You can't copy strings like that. Put this on top of your gamemode:
pawn Код:
#define strcpy(%0,%1) \
    strcat((%0[0] = '\0', %0), %1)
And change your line to
pawn Код:
strcpy(sInfo[playerid][rpname], inputtext, ? ?);
And replace ? ? with size of your rpname
Reply
#3

Quote:
Originally Posted by Misiur
Посмотреть сообщение
You can't copy strings like that. Put this on top of your gamemode:
pawn Код:
#define strcpy(%0,%1) \
    strcat((%0[0] = '\0', %0), %1)
And change your line to
pawn Код:
strcpy(sInfo[playerid][rpname], inputtext, ? ?);
And replace ? ? with size of your rpname
Thanks it worked! Everything works now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)