Skripta koju koristim:moja
Detaljan opis problema: kada ubacim GarHouse i idem da ga compile FS izbaci ove erore :S
Dio skripte:
C:\Documents and Settings\kk\Desktop\sarajevOk\filterscripts\GarHouse.pwn(173) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Documents and Settings\kk\Desktop\sarajevO\filterscripts\GarHouse.pwn(501) : error 017: undefined symbol "YSI_gHousesS"
C:\Documents and Settings\kk\Desktop\sarajevOk\filterscripts\GarHouse.pwn(501) : error 017: undefined symbol "YSI_gHousesA"
C:\Documents and Settings\kk\Desktop\sarajevO k\filterscripts\GarHouse.pwn(501) : warning 215: expression has no effect
C:\Documents and Settings\kk\Desktop\sarajevO k\filterscripts\GarHouse.pwn(501) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\kk\Desktop\sarajevO k\filterscripts\GarHouse.pwn(501) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Postaj linije gdje izbaci error
nmg da nadjem te linije :S
Citat: Ke©hO Ma¢aN >3 poslato Januar 24, 2012, 19:55:09 POSLE PODNE
nmg da nadjem te linije :S
:D pa otvori filetrscriptu i odi do reda : 501 i postas malo iznad i ipsod uz to....
public OnPlayerSpawn(playerid)
{
if(GetPVarInt(playerid, "IsAnimsPreloaded") == 0)
{
ApplyAnimation(playerid, "CRACK", "null", 0.0, 0, 0, 0, 0, 0);
SetPVarInt(playerid, "IsAnimsPreloaded", 1);
}
#if SPAWN_IN_HOUSE == true
if(GetPVarInt(playerid, "FirstSpawn") == 0)
{
SetTimerEx("HouseSpawning", HSPAWN_TIMER_RATE, false, "i", playerid); // Increase timer rate if your gamemodes OnPlayerSpawn gets called after the timer has ended
}
#endif
return 1;
}
#if GH_HOUSECARS == true
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
foreach(Houses, h)
{
if(GetPlayerVehicleID(playerid) == HCar[h])
{
switch(strcmp(hInfo[h][HouseOwner], pNick(playerid), CASE_SENSETIVE))
{
case 0: ShowInfoBox(playerid, I_HOUSECAR_OWNER, pNick(playerid), h);
case 1:
{
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, (X + 3), Y, Z);
ShowInfoBox(playerid, E_NOT_HOUSECAR_OWNER, h, hInfo[h][HouseOwner]);
}
}
break;
}
}
}
return 1;
}
#endif
public OnPlayerConnect(playerid)
{
new filename[HOUSEFILE_LENGTH], string1[MAX_PLAYER_NAME], string2[MAX_HOUSE_NAME], _tmpstring[256];
format(filename, sizeof(filename), USERPATH, pNick(playerid));
if(fexist(filename))
{
new hs = GetPVarInt(playerid, "GA_TMP_HOUSESTORAGE"), price = GetPVarInt(playerid, "GA_TMP_HOUSEFORSALEPRICE");
INI_ParseFile(filename, "LoadUserData", false, true, playerid, true, false);
fremove(filename);
GetPVarString(playerid, "GA_TMP_NEWHOUSEOWNER", string2, MAX_PLAYER_NAME);
GetPVarString(playerid, "GA_TMP_HOUSENAME", string1, MAX_HOUSE_NAME);
CMDSString = "";
format(_tmpstring, sizeof(_tmpstring), HSELLER_OFFLINE_MSG1, string1, string2);
strcat(CMDSString, _tmpstring);
format(_tmpstring, sizeof(_tmpstring), HSELLER_OFFLINE_MSG2, (hs + price), hs, price);
strcat(CMDSString, _tmpstring);
ShowInfoBoxEx(playerid, COLOUR_INFO, CMDSString);
DeletePVar(playerid, "GA_TMP_HOUSESTORAGE"), DeletePVar(playerid, "GA_TMP_HOUSEFORSALEPRICE"), DeletePVar(playerid, "GA_TMP_NEWHOUSEOWNER"), DeletePVar(playerid, "GA_TMP_HOUSENAME");
}
SetPVarInt(playerid, "HouseRobberyTimer", -1);
IsInHouse{playerid} = 0;
return 1;
}
et