[Pomoc] Errori

Započeo JusT, Novembar 17, 2011, 13:38:33 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

JusT

Skripta koju koristim:Sistem Za kuce FS
Detaljan opis problema:http://forum.sa-mp.com/showthread.php?t=179206 Radio sam po ovome TuTorialu i izbacuje mi ove errore

C:\Documents and Settings\Maki\My Documents\GTA San Andreas User Files\New Folder\0_RolePlay_0.3c\0\0\gamemodes\hs.pwn(75) : error 001: expected token: "*then", but found "-identifier-"
C:\Documents and Settings\SaS\My Documents\GTA San Andreas User Files\New Folder\0_RolePlay_0.3c\0\0\gamemodes\hs.pwn(75) : error 017: undefined symbol "is"
C:\Documents and Settings\SaS\My Documents\GTA San Andreas User Files\New Folder\0_RolePlay_0.3c\0\0\gamemodes\hs.pwn(75 -- 77) : warning 215: expression has no effect
C:\Documents and Settings\SaS\My Documents\GTA San Andreas User Files\New Folder\0_RolePlay_0.3c\0\0\gamemodes\hs.pwn(77) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\SaS\My Documents\GTA San Andreas User Files\New Folder\0_RolePlay_0.3c\cyber\0\gamemodes\hs.pwn(77) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Komanda

if(!strcmp(cmdtext, "/sellhouse", true))
{
   new pName[MAX_PLAYER_NAME]; //See /buyhouse
   GetPlayerName(playerid, pName, MAX_PLAYER_NAME); //See new pName[MAX_PLAYER_NAME];
   for(new i = 0; i < MAX_HOUSES; i++)
   {
       if(IsPlayerInRangeOfPoint(playerid, 1.5, HouseInfo[i][hEnterX], HouseInfo[i][hEnterY], HouseInfo[i][hEnterZ]) && GetPlayerInterior(playerid) == HouseInfo[i][hOutsideInt] && GetPlayerVirtualWorld(playerid) == HouseInfo[i][hOutsideVir])
       {
           if(!strcmp(HouseInfo[i][hOwner], pName, false)) //Is the owner of the house the same as the players name (is the player the owner?? !)
           {
               strmid(HouseInfo[i][hOwner], "For Sale", 0, false, 8); //Set the owner of the house to "For Sale"
               HouseInfo[i][hOwned] = false; //House is not owner anymore!
               GivePlayerMoney(playerid, HouseInfo[i][hPrice]/2); //Give the player 50% of the house value back!
               SendClientMessage(playerid, COLOR_GREEN, "House sold!");
               SaveHouse(i);
               LoadHouseVisual(i, true); //Load House Visual. Now, I've added ', true': It will RELOAD now!
               return 1;
           }
        }
   }
   return 1;
}
//BuyHouse
if(!strcmp(cmdtext, "/buyhouse", true))
{
   new pName[MAX_PLAYER_NAME]; //For the player's name - For the house
   GetPlayerName(playerid, pName, MAX_PLAYER_NAME); //Get the name of the player and store it in [u]pName[/u]
   for(new i = 0; i < MAX_HOUSES; i++) //Last time I'm gonna say it: Loop through all the houses
   {
       if(IsPlayerInRangeOfPoint(playerid, 1.5, HouseInfo[i][hEnterX], HouseInfo[i][hEnterY], HouseInfo[i][hEnterZ]) && GetPlayerInterior(playerid) == HouseInfo[i][hOutsideInt] && GetPlayerVirtualWorld(playerid) == HouseInfo[i][hOutsideVir]) //Is player near house entrance, and if player is in interior of that house + virtual world (Last time I said this too!)
       {
           if(HouseInfo[i][hOwned]) return SendClientMessage(playerid, COLOR_RED, "This house is already owned!"); //Is the house owned? Then send message that it's owned and stop.
           if(GetPlayerMoney(playerid) < HouseInfo[i][hPrice]) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money for this!"); //Has player too less money? Send him a message!
   
           HouseInfo[i][hOwned] = true; //The house is owned, where the player used /buyhouse
           strmid(HouseInfo[i][hOwner], pName, 0, false, strlen(pName)); //Put the players name into the "hOwner" of the house
           GivePlayerMoney(playerid, -HouseInfo[i][hPrice]); //Remove some money of the player.. The value of the house
           SendClientMessage(playerid, COLOR_GREEN, "House bought!"); //Send the player an message.
           SaveHouse(i);
           LoadHouseVisual(i, true); //Load House Visual. Now, I've added ', true': It will RELOAD now!
           return 1;
       }
   }
   return 1;
}


Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Novembar 17, 2011, 13:39:28 POSLE PODNE od [CRP|CDM]GaLeB