Multipe errors
#1

Error:
Код:
 C:\Users\Mijn pc\Desktop\test\pawno\include\SII.inc(48) : error 017: undefined symbol "strcmp"
C:\Users\Mijn pc\Desktop\test\pawno\include\SII.inc(48) : warning 215: expression has no effect
C:\Users\Mijn pc\Desktop\test\pawno\include\SII.inc(48) : warning 215: expression has no effect
C:\Users\Mijn pc\Desktop\test\pawno\include\SII.inc(48) : warning 215: expression has no effect
C:\Users\Mijn pc\Desktop\test\pawno\include\SII.inc(48) : error 001: expected token: ";", but found ")"
C:\Users\Mijn pc\Desktop\test\pawno\include\SII.inc(48) : error 029: invalid expression, assumed zero
C:\Users\Mijn pc\Desktop\test\pawno\include\SII.inc(48) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Line:
Quote:

INI_WriteInt("VirtualWorld",GetPlayerVirtualWorld( playerid));

What went wrong and what should I do to fix it?
Reply
#2

dude it must be like this

pawn Код:
INI_WriteInt(FilePath, "VirtualWorld", GetPlayerVirtualWorld(playerid));
change the FilePath with your file path.
Reply
#3

Quote:
Originally Posted by Romel
Посмотреть сообщение
dude it must be like this

pawn Код:
INI_WriteInt(FilePath, "VirtualWorld", GetPlayerVirtualWorld(playerid));
change the FilePath with your file path.
More of the command:
Код:
    format(file,sizeof(file),"FHouse/Houses/%i.ini",id);//Formating the var to the selected house directory.
    INI_Open(file);//Opening the file with SII.
    INI_WriteInt("Price",HousePrice);//Writing in the place "Price" the inputted "Price" value.
    INI_WriteInt("Owned",0);//Setting to "Owned" = 0 in the ini file.
    INI_WriteInt("VirtualWorld",GetPlayerVirtualWorld(playerid));//Writing "VirtualWorld" = GetPlayerVirtualWorld(..);
    INI_WriteFloat("XPos",x);//Writing the players pos for the check point position.
    INI_WriteFloat("YPos",y);//Self explanatory.
    INI_WriteFloat("ZPos",z);//Self explanatory.
    INI_WriteString("Owner","Nonusablenameforthishouse");//Writing a string in "Owned" to "Nonusablenameforthishouse"
    INI_Save();//Saving file with SII.
    INI_Close();//Closing the file with SII.
    format(labelstring,sizeof(labelstring),"Owned: No \nPrice: %i",HousePrice);
    HInfo[id][HouseLabel] = Create3DTextLabel(labelstring,0xFF0000FF,x,y,z,25.0,GetPlayerVirtualWorld(playerid));
    HouseCount++;
    return 1;
}
As you can see, it's already supposed to save there. Thus, I doubt that has anything to do with the errors.
Reply
#4

Actually, it's an error by my SII, nevermind, close this, lmao.
Reply
#5

At the top of the script you should have define the path where you want to save player's data.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)