biz

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Ich wollte ein bizsystem scripten, indem ich enum playerInfo kopiere und so abändere, das daraus enum BizInfo wird...
    jetzt habe ich errors:

    D:\sampserver\gamemodes\monsteer.pwn(330) : error 017: undefined symbol "ini_GetKey"
    D:\sampserver\gamemodes\monsteer.pwn(330) : error 033: array must be indexed (variable "key")
    D:\sampserver\gamemodes\monsteer.pwn(331) : error 017: undefined symbol "ini_GetValue"
    D:\sampserver\gamemodes\monsteer.pwn(331) : error 033: array must be indexed (variable "val")
    D:\sampserver\gamemodes\monsteer.pwn(332) : error 017: undefined symbol "ini_GetValue"
    D:\sampserver\gamemodes\monsteer.pwn(332) : error 033: array must be indexed (variable "val")
    D:\sampserver\gamemodes\monsteer.pwn(333) : error 017: undefined symbol "ini_GetValue"
    D:\sampserver\gamemodes\monsteer.pwn(333) : error 033: array must be indexed (variable "val")
    D:\sampserver\gamemodes\monsteer.pwn(334) : error 017: undefined symbol "ini_GetValue"
    D:\sampserver\gamemodes\monsteer.pwn(334) : error 033: array must be indexed (variable "val")
    D:\sampserver\gamemodes\monsteer.pwn(335) : error 017: undefined symbol "ini_GetValue"
    D:\sampserver\gamemodes\monsteer.pwn(335) : error 033: array must be indexed (variable "val")
    D:\sampserver\gamemodes\monsteer.pwn(336) : error 017: undefined symbol "ini_GetValue"
    D:\sampserver\gamemodes\monsteer.pwn(336) : error 033: array must be indexed (variable "val")
    D:\sampserver\gamemodes\monsteer.pwn(337) : error 017: undefined symbol "ini_GetValue"
    D:\sampserver\gamemodes\monsteer.pwn(337) : error 033: array must be indexed (variable "val")
    D:\sampserver\gamemodes\monsteer.pwn(338) : error 017: undefined symbol "ini_GetValue"
    D:\sampserver\gamemodes\monsteer.pwn(338) : error 033: array must be indexed (variable "val")
    D:\sampserver\gamemodes\monsteer.pwn(339) : error 017: undefined symbol "ini_GetValue"
    D:\sampserver\gamemodes\monsteer.pwn(339) : error 033: array must be indexed (variable "val")
    D:\sampserver\gamemodes\monsteer.pwn(340) : error 017: undefined symbol "ini_GetValue"
    D:\sampserver\gamemodes\monsteer.pwn(340) : error 033: array must be indexed (variable "val")
    D:\sampserver\gamemodes\monsteer.pwn(341) : error 017: undefined symbol "ini_GetValue"
    D:\sampserver\gamemodes\monsteer.pwn(341) : error 033: array must be indexed (variable "val")
    D:\sampserver\gamemodes\monsteer.pwn(342) : error 017: undefined symbol "ini_GetValue"
    D:\sampserver\gamemodes\monsteer.pwn(342) : error 033: array must be indexed (variable "val")


    //BIZZZZZZZZZZZZZZZZZZZZZZZZZZ
    for(new i = 0; i < MAX_BIZ; i++)
    {
    new string2 [80];
    format(string2, sizeof(string2), "%d.biz", i);
    new File: UserFile = fopen(string2, io_read);
    if (UserFile)
    {
    new key[128],val[128];
    new Data[128];
    while(fread(UserFile,Data,sizeof(Data)))
    {
    key = ini_GetKey(Data);//ZEILE 330
    if( strcmp( key , "Kasse" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bKasse] = strval( val ); }
    if( strcmp( key , "Name" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bName] = strval( val ); }
    if( strcmp( key , "Owner" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bOwner] = strval( val ); }
    if( strcmp( key , "PosX" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bPosX] = floatstr( val ); }
    if( strcmp( key , "PosY" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bPosY] = floatstr( val ); }
    if( strcmp( key , "PosZ" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bPosZ] = floatstr( val ); }
    if( strcmp( key , "PosiX" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bPosiX] = floatstr( val ); }
    if( strcmp( key , "PosiY" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bPosiY] = floatstr( val ); }
    if( strcmp( key , "PosiZ" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bPosiZ] = floatstr( val ); }
    if( strcmp( key , "PosInt" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bPosInt] = strval( val ); }
    if( strcmp( key , "PosVw" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bPosVw] = strval( val ); }
    if( strcmp( key , "EnterPrize" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bEnterPrize] = strval( val ); }//ZEILE 342
    if( strcmp( key , "Grundpreis" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bGrundpreis] = strval( val ); }
    if( strcmp( key , "Enterable" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bEnterable] = strval( val ); }
    if( strcmp( key , "Opened" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bOpened] = strval( val ); }
    if( strcmp( key , "Prods" , true ) == 0 ) { val = ini_GetValue( Data ); BizInfo[i][bProds] = strval( val ); }
    fclose(UserFile);}
    //BIZZZZZZZZZZZZZZZZZZZZZZZZZZ

    was muss ich tun? X(