Ja, sorry - jetzt funktioniert es, mit Float:x etc.
Danke
Ja, sorry - jetzt funktioniert es, mit Float:x etc.
Danke
Mit der aktuellsten Version passiert folgendes beim compilen:
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(57) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(58) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(59) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(60) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(61) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(62) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(63) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(64) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(65) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(66) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(67) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(68) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(69) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(70) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(71) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(72) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(73) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(74) : error 017: undefined symbol "INI_Int"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(75) : error 017: undefined symbol "INI_Float"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(76) : error 017: undefined symbol "INI_Float"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(77) : error 017: undefined symbol "INI_Float"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(132) : error 017: undefined symbol "INI_ParseFile"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(132) : warning 215: expression has no effect
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(132) : error 029: invalid expression, assumed zero
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(132) : error 017: undefined symbol "extra"
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(132) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
25 Errors.
Alles anzeigen
mit Version 4.0.2:
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(75) : warning 213: tag mismatch
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(76) : warning 213: tag mismatch
C:\Users\styles\Desktop\samp037_svr_R2-1-1_win32\gamemodes\bare.pwn(77) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
public OnPlayerDisconnect(playerid, reason)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Bank",PlayerInfo[playerid][pBank]);
INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob]);
INI_WriteInt(File,"Experience",PlayerInfo[playerid][pExperience]);
INI_WriteInt(File,"Drugs",PlayerInfo[playerid][pDrugs]);
INI_WriteInt(File,"Seeds",PlayerInfo[playerid][pSeeds]);
INI_WriteInt(File,"Wanted",PlayerInfo[playerid][pWanted]);
INI_WriteInt(File,"Level",PlayerInfo[playerid][pLevel]);
INI_WriteInt(File,"Weapon",PlayerInfo[playerid][pWeapon]);
INI_WriteInt(File,"Ammo",PlayerInfo[playerid][pAmmo]);
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"Faction",PlayerInfo[playerid][pFaction]);//saves the players faction id on disconnect
INI_WriteInt(File,"Facrank",PlayerInfo[playerid][pFacrank]);//saves the players faction rank on disconnect
INI_WriteInt(File,"Facleader",PlayerInfo[playerid][pFacleader]);//saves the players faction leadership status on disconnect
INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
INI_WriteFloat(File,"posX",x);
INI_WriteFloat(File,"posY",y);
INI_WriteFloat(File,"posZ",z);
INI_Close(File);
return 1;
}
Alles anzeigen
warning 213: tag mismatch tritt auf, bei folgendem Codeabschnitt:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
INI_WriteFloat(File,"posX",x);
INI_WriteFloat(File,"posY",y);
INI_WriteFloat(File,"posZ",z);
der mismatch tritt beim WriteFloat auf.
Benutze y_ini.
Die Sequenz tritt im Callback OnPlayerDisconnect(); auf.