Započeo Sarkenzo
•16. Mar. 2015.• Zaključano[POMOC]ProxDetector warninzi
314
pregleda
2
postova
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
184
Postovi:
52
Teme:
Pridružio se:Maj 2012
16. Mar. 2015.
Skripta koju koristim: od 0
Detaljan opis problema: Ne znam kako da popravim ove warninge
Dio skripte:
Detaljan opis problema: Ne znam kako da popravim ove warninge
Dio skripte:
format(messagedajdrogu, sizeof(messagedajdrogu), "%s vadi kesicu sa kokainom i daje je %s.", namedajdrogu, othernamedajdrogu);
ProxDetector(40.0, playerid, messagedajdrogu, LJUBICASTA_BOJA,LJUBICASTA_BOJA,LJUBICASTA_BOJA,LJUBICASTA_BOJA,LJUBICASTA_BOJA);
format(messagedajdrogu, sizeof(messagedajdrogu), "%s vadi paketic sa marihuanom i daje ga %s.", namedajdrogu, othernamedajdrogu);
ProxDetector(40.0, playerid, messagedajdrogu, LJUBICASTA_BOJA,LJUBICASTA_BOJA,LJUBICASTA_BOJA,LJUBICASTA_BOJA,LJUBICASTA_BOJA);
D:\SAMP modovi\LG mod od 0\gamemodes\LG.pwn(10) : warning 201: redefinition of constant/macro (symbol "CMD:%1(%2)")
D:\SAMP modovi\LG mod od 0\gamemodes\LG.pwn(408) : warning 202: number of arguments does not match definition
D:\SAMP modovi\LG mod od 0\gamemodes\LG.pwn(408) : warning 202: number of arguments does not match definition
D:\SAMP modovi\LG mod od 0\gamemodes\LG.pwn(408) : warning 202: number of arguments does not match definition
D:\SAMP modovi\LG mod od 0\gamemodes\LG.pwn(408) : warning 202: number of arguments does not match definition
D:\SAMP modovi\LG mod od 0\gamemodes\LG.pwn(419) : warning 202: number of arguments does not match definition
D:\SAMP modovi\LG mod od 0\gamemodes\LG.pwn(419) : warning 202: number of arguments does not match definition
D:\SAMP modovi\LG mod od 0\gamemodes\LG.pwn(419) : warning 202: number of arguments does not match definition
D:\SAMP modovi\LG mod od 0\gamemodes\LG.pwn(419) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Warnings.
OG Legend
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
246 / 250 XP
Početnik(0)
2,678
Postovi:
133
Teme:
Pridružio se:Maj 2012
16. Mar. 2015.
Evo ti stock za ProxDetector te tvoj stock/public zameni s ovim
I onda jednostavno na ovakav nacin radis gde ti treba ovo ...
stock ProxDetector(Float:radi, playerid, string[], col1, col2, col3, col4, col5)
{
if (IsPlayerConnected(playerid))
{
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
foreach (new i : Player)
{
if (IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
{
if (!BigEar)
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
{
SendClientMessage(i, col1, string);
}
else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
{
SendClientMessage(i, col2, string);
}
else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
{
SendClientMessage(i, col3, string);
}
else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
{
SendClientMessage(i, col4, string);
}
else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
SendClientMessage(i, col5, string);
}
}
else
{
SendClientMessage(i, col1, string);
}
}
}
}
return 1;
}
I onda jednostavno na ovakav nacin radis gde ti treba ovo ...
format(string, sizeof(string), "Text");
ProxDetector(radius, playerid, string, BOJA, BOJA, BOJA, BOJA, BOJA);
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava