Skripta koju koristim:Moja CnR
Detaljan opis problema😛a errori gdje mi fali {} ili ne znam sta je onda
Dio skripte:
C:\Users\AjdiN\Desktop\CCNR\CNRSF\pawno\include\cnr/garage.inc(96) : error 029: invalid expression, assumed zero
C:\Users\AjdiN\Desktop\CCNR\CNRSF\pawno\include\cnr/garage.inc(97) : warning 217: loose indentation
C:\Users\AjdiN\Desktop\CCNR\CNRSF\pawno\include\cnr/garage.inc(100) : error 010: invalid function or declaration
C:\Users\AjdiN\Desktop\CCNR\CNRSF\pawno\include\cnr/garage.inc(290) : error 029: invalid expression, assumed zero
C:\Users\AjdiN\Desktop\CCNR\CNRSF\pawno\include\cnr/garage.inc(291) : warning 217: loose indentation
C:\Users\AjdiN\Desktop\CCNR\CNRSF\pawno\include\cnr/garage.inc(294) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
COMMAND:sellgarageto(playerid, params[])
{
new id;
new idp;
new ammount;
if(sscanf(params, "uid", idp, ammount, id))
{
Usage(playerid, "sellgarageto ");
}
else
{
if(Player == 0)
{
if(IsPlayerInDynamicCP(idp, Garage) && IsPlayerInDynamicCP(playerid, Garage))
{
if(Garage==Player)
{
if(Player >= ammount)
{
new msg;
takeMoney(idp, 500000);
Garage = Player;
format(msg, sizeof(msg), CHAT_INFO"[PRESS Y TO ENTER]\n"CHAT_WHITE"ID : "CHAT_YELLOW"%d"CHAT_WHITE"\nLocation : "CHAT_YELLOW"%s\n"CHAT_WHITE"Owner :"CHAT_YELLOW" %s", Garage, GetXY2DZone(Garage, Garage), GetName(playerid));
DestroyDynamic3DTextLabel(Garage);
Server(idp, "Use /exitgarage to exit garage. Use /sellgarage to sell garage. Use /lockgarage to lock garage");
Garage = CreateDynamic3DTextLabel(msg, COLOR_WHITE, Garage, Garage, Garage + 0.5, 10.0);
mysql_format(koneksi, msg, sizeof(msg), "UPDATE `garage` SET `owner` = '%d' where `id` = '%d'", Garage, Garage);
mysql_format(koneksi, msg, sizeof(msg), "UPDATE `player` SET `garageo` = '1' where `id` = '%d'", Garage);
mysql_format(koneksi, msg, sizeof(msg), "UPDATE `player` SET `garageo` = '0' where `id` = '%d'", Player);
mysql_query(koneksi, msg, false);
}
else
{
Server(idp, "You didn't have enough money to buy garage.");
}
}
else
{
Server(playerid, "You don't own this garage");
}
}
else
{
Server(playerid, "You must be in garage checkpoint to buy/sell garage.");
}
}
else
}
Server(idp, "You can't own more than one garage(only donator can own more garages)");
}
}
return 1;
}
COMMAND:buygarage(playerid, params[])
{
new id;
if(sscanf(params, "d", id))
{
Usage(playerid, "buygarage ");
}
else
{
if(Player == 0)
{
if(IsPlayerInDynamicCP(playerid, Garage))
{
if(Player >= 500000)
{
new msg;
takeMoney(playerid, 500000);
Garage = Player;
format(msg, sizeof(msg), CHAT_INFO"[PRESS Y TO ENTER]\n"CHAT_WHITE"ID : "CHAT_YELLOW"%d"CHAT_WHITE"\nLocation : "CHAT_YELLOW"%s\n"CHAT_WHITE"Owner :"CHAT_YELLOW" %s", Garage, GetXY2DZone(Garage, Garage), GetName(playerid));
DestroyDynamic3DTextLabel(Garage);
Server(playerid, "Use /exitgarage to exit garage. Use /sellgarage to sell garage. Use /lockgarage to lock garage");
Garage = CreateDynamic3DTextLabel(msg, COLOR_WHITE, Garage, Garage, Garage + 0.5, 10.0);
mysql_format(koneksi, msg, sizeof(msg), "UPDATE `garage` SET `owner` = '%d' where `id` = '%d'", Garage, Garage);
mysql_format(koneksi, msg, sizeof(msg), "UPDATE `player` SET `garageo` = '1' where `id` = '%d'", Player);
mysql_query(koneksi, msg, false);
}
else
{
Server(playerid, "You didn't have enough money to buy garage.");
}
}
else
{
Server(playerid, "You must be in garage checkpoint to buy garage.");
}
}
else
}
Server(playerid, "You can't own more than one garage.Only donator can own more garages");
}
}
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):