Invalid String Errors
#1

Im getting some crazy errors on some strings in my spawn menu function that i am building. I cannot seem to determine what is causing them.

Help resolving this would be appreciated.

Errors:
Код:
C:\Users\Nick\Desktop\newserver\pawno\include\TN_SPAWNMENU.inc(64) : error 037: invalid string (possibly non-terminated string)
C:\Users\Nick\Desktop\newserver\pawno\include\TN_SPAWNMENU.inc(64) : error 017: undefined symbol "Location"
C:\Users\Nick\Desktop\newserver\pawno\include\TN_SPAWNMENU.inc(64) : error 029: invalid expression, assumed zero
C:\Users\Nick\Desktop\newserver\pawno\include\TN_SPAWNMENU.inc(64) : fatal error 107: too many error messages on one line
Code:
pawn Код:
public LoadSpawnMenu(playerid)//LINE 60
{
    new String[1000];
    new TempString[60];
    format(String,sizeof(String),"Location\tSlots(House Only)\n\");
    for (new i=1; i < MAX_SPAWNPOINTS; i++)//LINE 65
    {
        if(TN_SPData[i][Security] == TN_pData[playerid][UserLevel])
        {
            format(TempString,sizeof(TempString),"
%s\tNone\n\",TN_SPData[i][Name]);
            strins(String,TempString,1);//LINE 70
        }
    }
    for (new i=1; i < MAX_HOUSES; i++)
    {
        if(IsHouseOwnedByPlayer(playerid, i))//LINE 75
        {
           
        }
    }
    return 1;//LINE 80
}
Reply
#2

Change this "format(String,sizeof(String),"Location\tSlots(Hou se Only)\n\");" to "format(String,sizeof(String),"Location\tSlots(Hou se Only)\n");"

\" = Escaped character.
Reply
#3

Dang. Wow. I feel properly stupid now. Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)