Skripta koju koristim: RedLine (Moj Edit)
Detaljan opis problema: 2 Warninga
Dio skripte: Create3DTextLabel("Policijski Kompjuter \n ",COLOR_ASKQ,222.6239,110.9249,1003.218😎;// /suspect
Neke slike/video za lakse dobivanje pomoci(neobavezno):E:\Silvio\Podaci\Server Pordaci - Security RolePlay\Podaci\Game Mod\Exractan Mod\Test Server\RedLine\gamemodes\rcrp.PWN(15576) : warning 202: number of arguments does not match definition
E:\Silvio\Podaci\Server Pordaci - Security RolePlay\Podaci\Game Mod\Exractan Mod\Test Server\RedLine\gamemodes\rcrp.PWN(15576) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
Moji cijeli kordinati AddPlayerClass(288,222.6239,110.9249,1003.2188,273.5559,0,0,0,0,0,0); //
[Pomoc] 2 Warninga
Započeo Obrisan korisnik
•30. Sep. 2011.1,792
pregleda
23
postova
30. Sep. 2011.
30. Sep. 2011.
pHon wrote on September 30, 2011, 12:12 pm:
http://wiki.sa-mp.com/wiki/Create3DTextLabel
Pa nekuzim zasto nevalja, kada sam radio kako treba. Moze pomoc
30. Sep. 2011.
dodaj ovako
pa reci dal radi !!
ovo na kraju 40 to ti je daljina na koju se vidi 3dtext
Create3DTextLabel("Policijski Kompjuter \n ",COLOR_ASKQ,222.6239,110.9249,1003.2188, 40.0, 0);
pa reci dal radi !!
ovo na kraju 40 to ti je daljina na koju se vidi 3dtext
30. Sep. 2011.
Mora imati ovo:
(text[], color, Float:X, Float:Y, Float:Z, Float😄rawDistance, virtualworld, testLOS)
tvoje ima: text,color,x,y,z
al nema DrawDistance...
Pogledaj to tamo na onom linku i pokuÅ¡aj sam napraviti 😉
(text[], color, Float:X, Float:Y, Float:Z, Float😄rawDistance, virtualworld, testLOS)
tvoje ima: text,color,x,y,z
al nema DrawDistance...
Pogledaj to tamo na onom linku i pokuÅ¡aj sam napraviti 😉
30. Sep. 2011.
McEnnedy wrote on September 30, 2011, 12:12 pm:
http://wiki.sa-mp.com/wiki/Create3DTextLabel
Pa nekuzim zasto nevalja, kada sam radio kako treba. Moze pomoc
Ako si radio kako treba onda bi i radilo. OÄito da nisi radio kako treba!
30. Sep. 2011.
Sada radi, ali kada kucam /su neradi wanted level. Mislim nista neuzbacuje. Samo sam napravio da nekome mozes dati wanted level iz PD auta i iz PD postaje
/su CMD:
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
if(IsPlayerConnected(playerid))
if(PlayerToPoint(10.0, playerid,222.6239,110.9249,1003.218😎)
if(PlayerToPoint(10.0, playerid,636.1186,-580.2753,16.0065))
if(PlayerToPoint(10.0, playerid,636.1263,-567.4291,15.988😎)
if(PlayerToPoint(10.0, playerid,611.5971,-597.3213,16.9719))
if(PlayerToPoint(10.0, playerid,611.5496,-601.3842,16.9565))
if(PlayerToPoint(10.0, playerid,611.4792,-605.9762,16.9604))
{
if(OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 11 || OnDuty == 1 && PlayerInfo == 11) { }
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste na duznosti!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [opis zlocina]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (gTeam == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (gTeam != 2)
{
GetPlayerName(giveplayerid, 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, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [crime text]");
return 1;
}
if(WantedPoints == 0) { WantedPoints = 3; }
else { WantedPoints+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Ne mozete optuziti policajca !");
}
}
}
else
{
format(string, sizeof(string), " %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste Policajac / FBI / Swat !");
}
}
return 1;
/su CMD:
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
if(IsPlayerConnected(playerid))
if(PlayerToPoint(10.0, playerid,222.6239,110.9249,1003.218😎)
if(PlayerToPoint(10.0, playerid,636.1186,-580.2753,16.0065))
if(PlayerToPoint(10.0, playerid,636.1263,-567.4291,15.988😎)
if(PlayerToPoint(10.0, playerid,611.5971,-597.3213,16.9719))
if(PlayerToPoint(10.0, playerid,611.5496,-601.3842,16.9565))
if(PlayerToPoint(10.0, playerid,611.4792,-605.9762,16.9604))
{
if(OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 11 || OnDuty == 1 && PlayerInfo == 11) { }
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste na duznosti!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [opis zlocina]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (gTeam == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (gTeam != 2)
{
GetPlayerName(giveplayerid, 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, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [crime text]");
return 1;
}
if(WantedPoints == 0) { WantedPoints = 3; }
else { WantedPoints+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Ne mozete optuziti policajca !");
}
}
}
else
{
format(string, sizeof(string), " %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste Policajac / FBI / Swat !");
}
}
return 1;
30. Sep. 2011.
stavio si sve zajedno sa if(IsPlayerConnected(playerid)) nesme stojati zajedno sa ovim if(PlayerToPoint(10.0, playerid,222.6239,110.9249,1003.218😎)
if(IsPlayerConnected(playerid))
if(PlayerToPoint(10.0, playerid,222.6239,110.9249,1003.218😎)
if(PlayerToPoint(10.0, playerid,636.1186,-580.2753,16.0065))
if(PlayerToPoint(10.0, playerid,636.1263,-567.4291,15.988😎)
if(PlayerToPoint(10.0, playerid,611.5971,-597.3213,16.9719))
if(PlayerToPoint(10.0, playerid,611.5496,-601.3842,16.9565))
if(PlayerToPoint(10.0, playerid,611.4792,-605.9762,16.9604))
if(IsPlayerConnected(playerid))
if(PlayerToPoint(10.0, playerid,222.6239,110.9249,1003.218😎)
if(PlayerToPoint(10.0, playerid,636.1186,-580.2753,16.0065))
if(PlayerToPoint(10.0, playerid,636.1263,-567.4291,15.988😎)
if(PlayerToPoint(10.0, playerid,611.5971,-597.3213,16.9719))
if(PlayerToPoint(10.0, playerid,611.5496,-601.3842,16.9565))
if(PlayerToPoint(10.0, playerid,611.4792,-605.9762,16.9604))
30. Sep. 2011.
McEnnedy wrote on September 30, 2011, 12:22 pm:
Sada radi, ali kada kucam /su neradi wanted level. Mislim nista neuzbacuje. Samo sam napravio da nekome mozes dati wanted level iz PD auta i iz PD postaje
/su CMD:
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
if(IsPlayerConnected(playerid))
if(PlayerToPoint(10.0, playerid,222.6239,110.9249,1003.218😎||PlayerToPoint(10.0, playerid,636.1186,-580.2753,16.0065)||PlayerToPoint(10.0, playerid,636.1263,-567.4291,15.988😎||PlayerToPoint(10.0, playerid,611.5971,-597.3213,16.9719)||PlayerToPoint(10.0, playerid,611.5496,-601.3842,16.9565)||PlayerToPoint(10.0, playerid,611.4792,-605.9762,16.9604))
if(OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 11 || OnDuty == 1 && PlayerInfo == 11) { }
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste na duznosti!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [opis zlocina]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (gTeam == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (gTeam != 2)
{
GetPlayerName(giveplayerid, 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, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [crime text]");
return 1;
}
if(WantedPoints == 0) { WantedPoints = 3; }
else { WantedPoints+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Ne mozete optuziti policajca !");
}
}
}
else
{
format(string, sizeof(string), " %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste Policajac / FBI / Swat !");
}
}
return 1;
/su CMD:
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
if(IsPlayerConnected(playerid))
if(PlayerToPoint(10.0, playerid,222.6239,110.9249,1003.218😎||PlayerToPoint(10.0, playerid,636.1186,-580.2753,16.0065)||PlayerToPoint(10.0, playerid,636.1263,-567.4291,15.988😎||PlayerToPoint(10.0, playerid,611.5971,-597.3213,16.9719)||PlayerToPoint(10.0, playerid,611.5496,-601.3842,16.9565)||PlayerToPoint(10.0, playerid,611.4792,-605.9762,16.9604))
if(OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 11 || OnDuty == 1 && PlayerInfo == 11) { }
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste na duznosti!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [opis zlocina]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (gTeam == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (gTeam != 2)
{
GetPlayerName(giveplayerid, 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, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [crime text]");
return 1;
}
if(WantedPoints == 0) { WantedPoints = 3; }
else { WantedPoints+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Ne mozete optuziti policajca !");
}
}
}
else
{
format(string, sizeof(string), " %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste Policajac / FBI / Swat !");
}
}
return 1;
probaj ovak
30. Sep. 2011.
Sada mi izbija Warning na /swatsu 😢
if(strcmp(cmd, "/swatsu", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 3 || PlayerInfo == 3) { }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [opis zlocina]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (gTeam == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (gTeam != 2)
{
GetPlayerName(giveplayerid, 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, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [crime text]");
return 1;
}
if(WantedPoints == 0) { WantedPoints = 3; }
else { WantedPoints+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Ne mozete optuziti policajca !");
}
}
}
else
{
format(string, sizeof(string), " %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste Policajac / FBI / Swat !");
}
}
return 1;
}
if(strcmp(cmd, "/swatsu", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 3 || PlayerInfo == 3) { }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [opis zlocina]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (gTeam == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (gTeam != 2)
{
GetPlayerName(giveplayerid, 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, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [crime text]");
return 1;
}
if(WantedPoints == 0) { WantedPoints = 3; }
else { WantedPoints+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Ne mozete optuziti policajca !");
}
}
}
else
{
format(string, sizeof(string), " %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste Policajac / FBI / Swat !");
}
}
return 1;
}
30. Sep. 2011.
pHon wrote on September 30, 2011, 12:31 pm:
Ne kontam šta će ti /swatsu,stavi sve pod /su :S
Ne, ja bi da ima i swat /su i PD
30. Sep. 2011.
pHon wrote on September 30, 2011, 12:40 pm:
Koji warning ti izbacuje?
Sada sam to popravio, ali sada izbacuje na cmd /lock
CMD /lock:
if(strcmp(cmd, "/lock", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new carid;
if (gTeam == 2 || gTeam == 1)
{
if(gLastCar == 0 && PlayerInfo == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate vozilo.");
return 1;
}
else if(gLastCar != 0 && gLastCar != PlayerInfo+1)
{
if (HireCar != gLastCar && HireCar != 299)
{
gLastDriver[HireCar] = 300;
gCarLock[HireCar] = 0;
UnLockCar(HireCar);
}
HireCar = gLastCar;
}
}
if (PlayerInfo == 255)
{
if(HireCar == 299)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate vozilo.");
return 1;
}
}
carid = PlayerInfo+1;
if(HireCar != 299 && !SwitchKey)
{
carid = HireCar;
}
//new driver = gLastDriver;
new lockstatus = gCarLock;
new Float:cx,Float:cy,Float:cz;
GetVehiclePos(carid, cx, cy, cz);
switch (lockstatus)
{
case 0:
{
if(HireCar == 299 && PlayerInfo == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate vozilo");
return 1;
}
if(HireCar == carid && !SwitchKey)
{
GameTextForPlayer(playerid, "~w~Iznajmljeni Auto ~r~Je Zakljucan", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
gCarLock = 1;
LockCar(carid);
}
else if (PlayerInfo == carid-1)
{
GameTextForPlayer(playerid, "~w~Kucni Auto ~r~Zakljucan", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
gCarLock = 1;
LockCar(carid);
return 1;
}
}
case 1:
{
if(HireCar == 299 && PlayerInfo == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate vozilo");
return 1;
}
if(HireCar == carid && !SwitchKey)
{
GameTextForPlayer(playerid, "~w~Iznajmljeni Auto ~g~Je Otkljucan", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
gCarLock = 0;
UnLockCar(carid);
}
if (PlayerInfo == carid-1)
{
GameTextForPlayer(playerid, "~w~Kucni Auto ~g~Otkljucan", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
gCarLock = 0;
UnLockCar(carid);
return 1;
}
}
default:
{
SendClientMessage(playerid, COLOR_GRAD2, " Greska");
}
}
if(carid == 256)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate vozilo !");
}
}
return 1;
}
Warning:
E:\Silvio\Podaci\Server Pordaci - Security RolePlay\Podaci\Game Mod\Exractan Mod\Test Server\RedLine\gamemodes\rcrp.PWN(32193) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava