Also, ich habe in meinen script das property sys vom gf versucht einzubauen, scheitere daran mit folgenden warnings:
D:\TOBY\Grand_Theft_Auto\GTA San Andreas\GTA San Andreas\SA-MP\SA-MP\Selfmades\RPG_SCRIPT\SCRIPT\gamemodes\RP.pwn(1513) : warning 213: tag mismatch
D:\TOBY\Grand_Theft_Auto\GTA San Andreas\GTA San Andreas\SA-MP\SA-MP\Selfmades\RPG_SCRIPT\SCRIPT\gamemodes\RP.pwn(1514) : warning 213: tag mismatch
D:\TOBY\Grand_Theft_Auto\GTA San Andreas\GTA San Andreas\SA-MP\SA-MP\Selfmades\RPG_SCRIPT\SCRIPT\gamemodes\RP.pwn(7309) : warning 213: tag mismatch
D:\TOBY\Grand_Theft_Auto\GTA San Andreas\GTA San Andreas\SA-MP\SA-MP\Selfmades\RPG_SCRIPT\SCRIPT\gamemodes\RP.pwn(7310) : warning 213: tag mismatch
D:\TOBY\Grand_Theft_Auto\GTA San Andreas\GTA San Andreas\SA-MP\SA-MP\Selfmades\RPG_SCRIPT\SCRIPT\gamemodes\RP.pwn(7404) : warning 213: tag mismatch
D:\TOBY\Grand_Theft_Auto\GTA San Andreas\GTA San Andreas\SA-MP\SA-MP\Selfmades\RPG_SCRIPT\SCRIPT\gamemodes\RP.pwn(7405) : warning 213: tag mismatch
D:\TOBY\Grand_Theft_Auto\GTA San Andreas\GTA San Andreas\SA-MP\SA-MP\Selfmades\RPG_SCRIPT\SCRIPT\gamemodes\RP.pwn(7457) : warning 213: tag mismatch
D:\TOBY\Grand_Theft_Auto\GTA San Andreas\GTA San Andreas\SA-MP\SA-MP\Selfmades\RPG_SCRIPT\SCRIPT\gamemodes\RP.pwn(7458) : warning 213: tag mismatch
D:\TOBY\Grand_Theft_Auto\GTA San Andreas\GTA San Andreas\SA-MP\SA-MP\Selfmades\RPG_SCRIPT\SCRIPT\gamemodes\RP.pwn(7502) : warning 213: tag mismatch
D:\TOBY\Grand_Theft_Auto\GTA San Andreas\GTA San Andreas\SA-MP\SA-MP\Selfmades\RPG_SCRIPT\SCRIPT\gamemodes\RP.pwn(7503) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Warnings.
DER CODE:
enum hInfo
{[quote][/quote]
Float:hEntrancex,
Float:hEntrancey,
Float:hEntrancez,
Float:hExitx,
Float:hExity,
Float:hExitz,
hHealthx,
hHealthy,
hHealthz,
hArmourx,
hArmoury,
hArmourz,
hOwner[MAX_PLAYER_NAME],
hDiscription[MAX_PLAYER_NAME],
hValue,
hHel,
hArm,
hInt,
hLock,
hOwned,
hRooms,
hRent,
hRentabil,
hTakings,
hVec,
hVcol1,
hVcol2,
hDate,
hLevel,
Float:pInt,
pLocal,
};
if(strcmp(cmd, "/buyhouse", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0)
{
if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, " You already own a house, type /sellhouse if you want to buy this one !");
return 1;
}
if(GetPlayerMoney(playerid) > HouseInfo[h][hValue])
{
PlayerInfo[playerid][pPhousekey] = h;
HouseInfo[h][hOwned] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255);
GivePlayerMoney(playerid,-HouseInfo[h][hValue]);
PlayerPlayMusic(playerid);
SetPlayerInterior(playerid,HouseInfo[h][hInt]);
SetPlayerPos(playerid,HouseInfo[h][hExitx],HouseInfo[h][hExity],HouseInfo[h][hExitz]);
GameTextForPlayer(playerid, "~w~Welcome Home~n~You can exit at any time by moving to this door and typing /exit", 5000, 3);
PlayerInfo[playerid][pInt] = HouseInfo[h][hInt];
PlayerInfo[playerid][pLocal] = h;
SendClientMessage(playerid, COLOR_WHITE, "Congratulations, on your new Purchase !");
SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the new property help section !");
DateProp(playerid);
OnPropUpdate();
OnPlayerUpdate(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " You don't have the cash for that !");
return 1;
}
}
}
}
return 1;
}
warning 1:
PlayerInfo[playerid][pInt] = HouseInfo[h][hInt];
warning 2:
PlayerInfo[playerid][pLocal] = h;
nächster teil ist das login und register system
warning 3:
if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
warning 4:
if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
warning 5:
format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
warning 6:
format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
warning 7
format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
warning 8
format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
warning 9
PlayerInfo[playerid][pInt] = 0;
warning 10
PlayerInfo[playerid][pLocal] = 255;
bitte helft mir, hab ka wie ich das lösen könnte, hab oben schon überall davor Float:..... probiert, hat auch net gefunkt