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; //See /buyhouse
   GetPlayerName(playerid, pName, MAX_PLAYER_NAME); //See new pName;
   for(new i = 0; i < MAX_HOUSES; i++)
   {
       if(IsPlayerInRangeOfPoint(playerid, 1.5, HouseInfo, HouseInfo, HouseInfo) && GetPlayerInterior(playerid) == HouseInfo && GetPlayerVirtualWorld(playerid) == HouseInfo)
       {
           if(!strcmp(HouseInfo, pName, false)) //Is the owner of the house the same as the players name (is the player the owner?? !)
           {
               strmid(HouseInfo, "For Sale", 0, false, 8); //Set the owner of the house to "For Sale"
               HouseInfo = false; //House is not owner anymore!
               GivePlayerMoney(playerid, HouseInfo/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; //For the player's name - For the house
   GetPlayerName(playerid, pName, MAX_PLAYER_NAME); //Get the name of the player and store it in pName
   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, HouseInfo, HouseInfo) && GetPlayerInterior(playerid) == HouseInfo && GetPlayerVirtualWorld(playerid) == HouseInfo) //Is player near house entrance, and if player is in interior of that house + virtual world (Last time I said this too!)
       {
           if(HouseInfo) 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) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money for this!"); //Has player too less money? Send him a message!
   
           HouseInfo = true; //The house is owned, where the player used /buyhouse
           strmid(HouseInfo, pName, 0, false, strlen(pName)); //Put the players name into the "hOwner" of the house
           GivePlayerMoney(playerid, -HouseInfo); //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):