Započeo Schwarz
•6. Maj 2013.• Zaključano[Pomoc] Erors
645
pregleda
9
postova
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,058
Postovi:
155
Teme:
Pridružio se:Mar. 2012
6. Maj 2013.
Skripta koju koristim:
Detaljan opis problema: Daje mi ova 2 erora na prvu i na zadnju liniju
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
if(GetPlayerArmour(playerid)); //will check if player is using Jetpack
{
if(Pancir == 0) //if global variable JetPack is 0
{
new string,name;
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"LG: %s [ID %s] mozebi koristi Armor Hack proverete go!!",name,playerid);
ABroadCast(COLOR_YELLOW,string);
TBroadCast(COLOR_YELLOW,string);
}
else //if global variable JetPack is 1
return 1; //will return 1;
}
else Pancir = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) //will check if player is using Jetpack
{
if(JetPack == 0) //if global variable JetPack is 0
{
new string,name;
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"LG: %s mozebi koristi Jetpack Hack proverete go.",name);
SendClientMessageToAll(COLOR_GREEN,string);
}
else //if global variable JetPack is 1
return 1; //will return 1;
}
else JetPack = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack
return 1;
}Detaljan opis problema: Daje mi ova 2 erora na prvu i na zadnju liniju
D:\Documents and Settings\Miki\Desktop\gm\gamemodes\rp.pwn(18533) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Miki\Desktop\gm\gamemodes\rp.pwn(18520) : error 036: empty statementDio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
6. Maj 2013.
if(GetPlayerArmour(playerid)) //will check if player is using Jetpack
{
if(Pancir == 0) //if global variable JetPack is 0
{
new string,name;
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"LG: %s [ID %d] mozebi koristi Armor Hack proverete go!!",name,playerid);
ABroadCast(COLOR_YELLOW,string);
TBroadCast(COLOR_YELLOW,string);
}
else //if global variable JetPack is 1
return 1; //will return 1;
}
else Pancir = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) //will check if player is using Jetpack
{
if(JetPack == 0) //if global variable JetPack is 0
{
new string,name;
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"LG: %s mozebi koristi Jetpack Hack proverete go.",name);
SendClientMessageToAll(COLOR_GREEN,string);
}
else //if global variable JetPack is 1
return 1; //will return 1;
}
else JetPack = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack
return 1;
}Probaj pa javi, ako ne valja obelezi mi linije gde su errori ovako moram da ciljam
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,058
Postovi:
155
Teme:
Pridružio se:Mar. 2012
6. Maj 2013.
Sad je dobro ne daje erore ali ne mi ispisuje tekst kad neko stavi armor a ja imam napraveno preku varijablu ako se ne aktivira varajabla da ispisuje tekst adminima i testerima ali mene mi ne ispisuje a na isti princip imam uradeno i za jetpack i radi a za armor nece
Forum Don
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
7,407
Postovi:
93
Teme:
Pridružio se:Nov. 2011
6. Maj 2013.
a nisam vido, stavi ovako
if(GetPlayerArmour(playerid)) //will check if player is using Jetpack
{
if(Pancir == 0) //if global variable JetPack is 0
{
new string,name;
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"LG: %s [ID %d] mozebi koristi Armor Hack proverete go!!",name,playerid);
ABroadCast(COLOR_YELLOW,string);
format(string,sizeof(string),"LG: %s [ID %d] mozebi koristi Armor Hack proverete go!!",name,playerid);
TBroadCast(COLOR_YELLOW,string);
}
else //if global variable JetPack is 1
return 1; //will return 1;
}
else Pancir = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) //will check if player is using Jetpack
{
if(JetPack == 0) //if global variable JetPack is 0
{
new string,name;
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"LG: %s mozebi koristi Jetpack Hack proverete go.",name);
SendClientMessageToAll(COLOR_GREEN,string);
}
else //if global variable JetPack is 1
return 1; //will return 1;
}
else JetPack = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack
return 1;
}Forum Don
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
7,407
Postovi:
93
Teme:
Pridružio se:Nov. 2011
6. Maj 2013.
new Float:PlayersArmor;
GetPlayerArmour(i, PlayersArmor);
if(PlayersArmor > 99)
{
if(Pancir == 0) //if global variable JetPack is 0
{
new string,name;
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"LG: %s [ID %d] mozebi koristi Armor Hack proverete go!!",name,playerid);
ABroadCast(COLOR_YELLOW,string);
format(string,sizeof(string),"LG: %s [ID %d] mozebi koristi Armor Hack proverete go!!",name,playerid);
TBroadCast(COLOR_YELLOW,string);
}
else //if global variable JetPack is 1
return 1; //will return 1;
}
else Pancir = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) //will check if player is using Jetpack
{
if(JetPack == 0) //if global variable JetPack is 0
{
new string,name;
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"LG: %s mozebi koristi Jetpack Hack proverete go.",name);
SendClientMessageToAll(COLOR_GREEN,string);
}
else //if global variable JetPack is 1
return 1; //will return 1;
}
else JetPack = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack
return 1;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava