Započeo Obrisan korisnik
•8. Mar. 2012.• Zaključano[pomoc]jel moze pomoc
695
pregleda
10
postova
8. Mar. 2012.
Skripta koju koristim:Jedan moj
Detaljan opis problema😛A stavio sam cmd /jail sve to i dobio eror
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Detaljan opis problema😛A stavio sam cmd /jail sve to i dobio eror
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Quote
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(8434) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(10111) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(10219) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(10247) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(10295) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(10325) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(10360) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(11877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(11877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(11877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(11877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(16767) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(1680😎 : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(1680😎 : error 017: undefined symbol "COL_RED"
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(1680😎 : warning 215: expression has no effect
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(1680😎 : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(1680😎 : 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.
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(10111) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(10219) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(10247) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(10295) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(10325) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(10360) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(11877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(11877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(11877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(11877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(16767) : warning 217: loose indentation
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(1680😎 : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(1680😎 : error 017: undefined symbol "COL_RED"
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(1680😎 : warning 215: expression has no effect
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(1680😎 : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\ws\Desktop\Gamez\gm\pumarpg\pumarpg\gamemodes\DREAMWORLD.pwn(1680😎 : 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.
8. Mar. 2012.
postaj po pravilima foruma http://balkan-samp.com/forum/index.php?topic=11453.0 i onda ce ti neko pomoci
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
762
Postovi:
20
Teme:
Pridružio se:Sep. 2011
8. Mar. 2012.
kod boja gore na pocetku scripte dodaj
mislim da za to sluzi to COL_RED ...
i tu isto dodaj
da resis ove Loose indentation warninge... a daj ovaj red 11877 da vidim sta tu izaziva warning...
#define COL_RED "{FF0000}"
mislim da za to sluzi to COL_RED ...
i tu isto dodaj
#pragma tabsize 0
da resis ove Loose indentation warninge... a daj ovaj red 11877 da vidim sta tu izaziva warning...
8. Mar. 2012.
dock wrote on March 8, 2012, 5:44 pm:
kod boja gore na pocetku scripte dodaj
mislim da za to sluzi to COL_RED ...
i tu isto dodaj
da resis ove Loose indentation warninge... a daj ovaj red 11877 da vidim sta tu izaziva warning...
#define COL_RED "{FF0000}"
mislim da za to sluzi to COL_RED ...
i tu isto dodaj
#pragma tabsize 0
da resis ove Loose indentation warninge... a daj ovaj red 11877 da vidim sta tu izaziva warning...
8. Mar. 2012.
dock wrote on March 8, 2012, 5:54 pm:
Daj mi da vidim tu komandu sto si dodao...
Quote
if(strcmp(cmd, "/jail", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /jail [playerid/PartOfName] [time(minutes)] ");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo >= 1 )
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /jail [playerid/PartOfName] [time(minutes)] ");
return 1;
}
format(string, sizeof(string), "* ("COL_RED"Puma RPG Macedonia{FFFFFF}!) Go zatvorivte "COL_RED"%s.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* ("COLOR_RED"Puma RPG Macedonia{FFFFFF}!) "COL_RED"%s {FFFFFF}Ve zatvori vo zatvor | Razlog: "COL_RED"%s", sendername, (result));
SendClientMessage(playa, COLOR_WHITE, string);
SafeResetPlayerWeapons(playa);
WantedPoints = 0;
PlayerInfo = 1;
PlayerInfo = money*60;
SetPlayerInterior(playa, 0);
PlayerInfo = 0;
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(playa, gRandomJailSpawns, gRandomJailSpawns, gRandomJailSpawns);
format(string, sizeof(string), "Zatvoren si "COL_RED"%d {FFFFFF}minuti. Jamcevina: "COL_RED"Nedostupna", money);
SendClientMessage(playa, COLOR_WHITE, string);
format(string, 256, "AdmCmd: %s e zatvoren %d minuti od Admin %s Pricina: %s", giveplayer,money, sendername, result);
BroadCast(COLOR_LIGHTRED,string);
format(string, sizeof(string), "AdmCmd: %s e zatvoren %d minuti od Admin %s Pricina: %s", giveplayer,money, sendername, result);
printf("%s",string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, " Ne si admin pa da ja koristis komandata!");
}
}
return 1;
}
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /jail [playerid/PartOfName] [time(minutes)] ");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo >= 1 )
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /jail [playerid/PartOfName] [time(minutes)] ");
return 1;
}
format(string, sizeof(string), "* ("COL_RED"Puma RPG Macedonia{FFFFFF}!) Go zatvorivte "COL_RED"%s.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* ("COLOR_RED"Puma RPG Macedonia{FFFFFF}!) "COL_RED"%s {FFFFFF}Ve zatvori vo zatvor | Razlog: "COL_RED"%s", sendername, (result));
SendClientMessage(playa, COLOR_WHITE, string);
SafeResetPlayerWeapons(playa);
WantedPoints = 0;
PlayerInfo = 1;
PlayerInfo = money*60;
SetPlayerInterior(playa, 0);
PlayerInfo = 0;
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(playa, gRandomJailSpawns, gRandomJailSpawns, gRandomJailSpawns);
format(string, sizeof(string), "Zatvoren si "COL_RED"%d {FFFFFF}minuti. Jamcevina: "COL_RED"Nedostupna", money);
SendClientMessage(playa, COLOR_WHITE, string);
format(string, 256, "AdmCmd: %s e zatvoren %d minuti od Admin %s Pricina: %s", giveplayer,money, sendername, result);
BroadCast(COLOR_LIGHTRED,string);
format(string, sizeof(string), "AdmCmd: %s e zatvoren %d minuti od Admin %s Pricina: %s", giveplayer,money, sendername, result);
printf("%s",string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, " Ne si admin pa da ja koristis komandata!");
}
}
return 1;
}
9. Mar. 2012.
proaj obrisat tu svoju i dodaj ovu
}
if(strcmp(cmd, "/jail", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /jail [playerid/PartOfName] [time(minutes)] ");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo >= 1 || PlayerInfo >= 1)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /jail [playerid/PartOfName] [time(minutes)] ");
return 1;
}
format(string, sizeof(string), "* ("COL_RED"C.Life{FFFFFF}!) Zatvorio si "COL_RED"%s.", giveplayer);
SendClientMessage(playerid, WHITE, string);
format(string, sizeof(string), "* ("COL_RED"C.Life{FFFFFF}!) "COL_RED"%s {FFFFFF}vas je zatvorio u zatvor | Razlog: "COL_RED"%s", sendername, (result));
SendClientMessage(playa, WHITE, string);
SafeResetPlayerWeapons(playa);
WantedPoints = 0;
PlayerInfo = 1;
PlayerInfo = money*60;
SetPlayerInterior(playa, 0);
PlayerInfo = 0;
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(playa, gRandomJailSpawns, gRandomJailSpawns, gRandomJailSpawns);
format(string, sizeof(string), "Zatvorn si na "COL_RED"%d {FFFFFF}minuta. Jamcevina: "COL_RED"Nedostupna", money);
SendClientMessage(playa, COLOR_WHITE, string);
format(string, 256, "("COL_RED"C.Life{FFFFFF}!) "COL_RED"%s {FFFFFF}je zatvoren od "COL_RED"%s | {FFFFFF}Razlog: "COL_RED"%s", giveplayer, sendername, (result));
ABroadCast(WHITE,string,1);
format(string, sizeof(string), "Jail | %s,Admin %s [Razlog: %s]", giveplayer, sendername, (result));
printf("%s",string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava