03.08.2012, 06:47
Hi all. I am still trying to make a car selling system. But I am getting those errors now;
The system;
The errors are at the lines which contains '' ( '' and '' ) '' I don't know why.
Let me give more information;
It is a system that I tried to make; player submits this command; /accept [bla-bla]
And Those errors are coming from my car selling system. If the player attempts to accept seller's offer; and if the player has got VVeh; he gets Veh; if player has got Veh; he gets VVeh. That's why I made those lines;
Please help me!
Note; Some lines are not loosed because I copy- paste it, ignore it. Normally there is no loose identi... warning.
Код:
pwn(9655 -- 9656) : error 001: expected token: ")", but found ";" pwn(9683) : error 029: invalid expression, assumed zero pwn(9683 -- 9684) : warning 215: expression has no effect .pwn(9684) : error 001: expected token: ";", but found "if" .pwn(9685 -- 9686) : error 001: expected token: ")", but found ";" .pwn(9713) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Код:
else if(!strcmp(params, "araba1", true)) { new seller = ArabaSeller[playerid]; if(seller == -1) return SendClientMessage(playerid, COLOR_GREY, "Hiз kimseeden Araba satım teklifi almadınız."); if(!IsPlayerNearPlayer(playerid, seller, 2)) return SendClientMessage(playerid, COLOR_GREY, "Bu oyuncudan зok uzaktasınız."); if(ArabaPrice[seller][playerid] > PlayerInfo[playerid][pMoney]) return SendClientMessage(playerid, COLOR_GREY, "Ьzerinizde bu miktarda para bulunmamaktadır."); if(PlayerInfo[playerid][pVVeh]) 9655.Line->( GiveZaiatMoney(playerid, -ArabaPrice[seller][playerid]); GiveZaiatMoney(seller, ArabaPrice[seller][playerid]); RemoveDriverFromVehicle(seller); PlayerInfo[playerid][pVeh] = PlayerInfo[seller][pVeh]; PlayerInfo[playerid][vModel] = PlayerInfo[seller][vModel]; PlayerInfo[playerid][vX] = PlayerInfo[seller][vX]; PlayerInfo[playerid][vY] = PlayerInfo[seller][vY]; PlayerInfo[playerid][vZ] = PlayerInfo[seller][vZ]; PlayerInfo[playerid][vA] = PlayerInfo[seller][vA]; PlayerInfo[playerid][vC1] = PlayerInfo[seller][vC1]; PlayerInfo[playerid][vC2] = PlayerInfo[seller][vC2]; PlayerInfo[seller][pVeh] = 0; PlayerInfo[seller][vModel] = 0; PlayerInfo[seller][vX] = 0; PlayerInfo[seller][vY] = 0; PlayerInfo[seller][vZ] = 0; PlayerInfo[seller][vA] = 0; PlayerInfo[seller][vC1] = 0; PlayerInfo[seller][vC2] = 0; format(string, sizeof(string), "* %s aracını, %s adlı kişiye satış belgesini imzalar ve $%d alır", RPN(seller), RPN(playerid), ArabaPrice[seller][playerid]); SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE); format(string, sizeof(string), " Sen $%d karşılığında %s adlı kişinin 1. aracını satın aldın.", ArabaPrice[seller][playerid], RPN(seller)); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " %s adlı kişi $%d karşılığında senden 1. aracını satın aldı.", RPN(playerid), ArabaPrice[seller][playerid]); SendClientMessage(seller, COLOR_LIGHTBLUE, string); ArabaSeller[playerid] = -1; ArabaPrice[seller][playerid] = 0; 9683.Line->) if(PlayerInfo[playerid][pVeh]) ( GiveZaiatMoney(playerid, -ArabaPrice[seller][playerid]); GiveZaiatMoney(seller, ArabaPrice[seller][playerid]); RemoveDriverFromVehicle(seller); PlayerInfo[playerid][pVVeh] = PlayerInfo[seller][pVeh]; PlayerInfo[playerid][vVModel] = PlayerInfo[seller][vModel]; PlayerInfo[playerid][vVX] = PlayerInfo[seller][vX]; PlayerInfo[playerid][vVY] = PlayerInfo[seller][vY]; PlayerInfo[playerid][vVZ] = PlayerInfo[seller][vZ]; PlayerInfo[playerid][vVA] = PlayerInfo[seller][vA]; PlayerInfo[playerid][vVC1] = PlayerInfo[seller][vC1]; PlayerInfo[playerid][vVC2] = PlayerInfo[seller][vC2]; PlayerInfo[seller][pVeh] = 0; PlayerInfo[seller][vModel] = 0; PlayerInfo[seller][vX] = 0; PlayerInfo[seller][vY] = 0; PlayerInfo[seller][vZ] = 0; PlayerInfo[seller][vA] = 0; PlayerInfo[seller][vC1] = 0; PlayerInfo[seller][vC2] = 0; format(string, sizeof(string), "* %s aracını, %s adlı kişiye satış belgesini imzalar ve $%d alır", RPN(seller), RPN(playerid), ArabaPrice[seller][playerid]); SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE); format(string, sizeof(string), " Sen $%d karşılığında %s adlı kişinin 1. aracını satın aldın.", ArabaPrice[seller][playerid], RPN(seller)); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " %s adlı kişi $%d karşılığında senden 1. aracını satın aldı.", RPN(playerid), ArabaPrice[seller][playerid]); SendClientMessage(seller, COLOR_LIGHTBLUE, string); ArabaSeller[playerid] = -1; ArabaPrice[seller][playerid] = 0; ) }
Let me give more information;
It is a system that I tried to make; player submits this command; /accept [bla-bla]
And Those errors are coming from my car selling system. If the player attempts to accept seller's offer; and if the player has got VVeh; he gets Veh; if player has got Veh; he gets VVeh. That's why I made those lines;
Код:
if(PlayerInfo[playerid][pVeh]) ( blablabla )
Note; Some lines are not loosed because I copy- paste it, ignore it. Normally there is no loose identi... warning.