Detaljan opis problema: Izlazi mi ovo u pawn
Quote
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : error 001: expected token: "-string end-", but found "-identifier-"
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : warning 215: expression has no effect
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : warning 215: expression has no effect
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : warning 215: expression has no effect
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : error 001: expected token: ";", but found ")"
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : error 029: invalid expression, assumed zero
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : fatal error 107: too many error messages on one line
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : warning 215: expression has no effect
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : warning 215: expression has no effect
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : warning 215: expression has no effect
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : error 001: expected token: ";", but found ")"
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : error 029: invalid expression, assumed zero
E:\SAMP\Nova fascikla (3)\TechLand Xperia\gamemodes\CLRP.pwn(39466) : fatal error 107: too many error messages on one line
to se odnosi na ovo
Quote
if (strcmp("/robbank" cmdtext, true, 10) == 0)
Dio skripte:
Quote
if (strcmp("/robbank" cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if(robbing == 1)
{
SendClientMessage(playerid, COLOR_GREY, " You are already robbing the bank, please slow down");
return 1;
}
if(alreadyrobbed == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "You already robbed the bank! Wait 1 hour.");
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2308.8071,-13.2485,26.7422)) // Change X Y Z to the location you want
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the bank !");
return 1;
}
SendClientMessage(playerid, COLOR_WHITE, " You started to rob the bank, This will take 10 minutes");
SetTimerEx("bankrob", 600000, false, "i", playerid);
robbing = 1;
SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
SendClientMessageToAll(COLOR_WHITE, " The bank is currently getting robbed.");
SendClientMessageToAll(COLOR_WHITE, " We are currently waiting for the cops");
SendClientMessageToAll(COLOR_WHITE, " We will report more when we get more information");
SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
return 1;
}
}
{
if(IsPlayerConnected(playerid))
{
if(robbing == 1)
{
SendClientMessage(playerid, COLOR_GREY, " You are already robbing the bank, please slow down");
return 1;
}
if(alreadyrobbed == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "You already robbed the bank! Wait 1 hour.");
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2308.8071,-13.2485,26.7422)) // Change X Y Z to the location you want
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the bank !");
return 1;
}
SendClientMessage(playerid, COLOR_WHITE, " You started to rob the bank, This will take 10 minutes");
SetTimerEx("bankrob", 600000, false, "i", playerid);
robbing = 1;
SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
SendClientMessageToAll(COLOR_WHITE, " The bank is currently getting robbed.");
SendClientMessageToAll(COLOR_WHITE, " We are currently waiting for the cops");
SendClientMessageToAll(COLOR_WHITE, " We will report more when we get more information");
SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
return 1;
}
}
