How would i do this right?
#1

pawn Код:
AccountInfo[playerid][Year] = inputtext;
Код:
C:\Users\Torran\Desktop\tRoleplay\gamemodes\tRoleplay.pwn(1465) : error 006: must be assigned to an array
How would i save to the users file whatever the person types on dialog = inputtext;
Reply
#2

Код:
strmid(AccountInfo[playerid][Year], inputtext, 0, strlen(inputtext), 255);
Reply
#3

Thanks errors gone nw
Reply
#4

Quote:
Originally Posted by Torran
pawn Код:
AccountInfo[playerid][Year] = inputtext;
Integer:
pawn Код:
enum blabla
{
    Year  // integer
}
new AccountInfo[MAX_PLAYERS][blabla];
AccountInfo[playerid][Year] = strval(inputtext);
String:
pawn Код:
enum blabla
{
    Year[32]  // string
}
new AccountInfo[MAX_PLAYERS][blabla];
strmid(AccountInfo[playerid][Year], inputtext, 0, strlen(inputtext), 128);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)