[Pomoc] IC i OOC chat.

Započeo Rossâ„¢ =], Februar 02, 2013, 22:46:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Citat: Blaeks poslato Februar 03, 2013, 12:24:46 POSLE PODNE
Citat: Loupa poslato Februar 03, 2013, 12:10:22 POSLE PODNE
Ovo sam prvo stavio sto si reko
public OnPlayerText(playerid, text[])
{
new
message[128+1], pName[MAX_PLAYER_NAME+1];

    GetPlayerName(playerid, pName, sizeof(pName));

    format(message, sizeof(message), "%s: %s", pName, text);
sendICMessage(20.0, playerid, message);


        return 1;
}
- stavio sam pod OnPlayerText izbacuje  - C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(322) : warning 215: expression has no effect.To manje vise,to valja,mogu upalit srw i s tim jednim erorom.


STOCK stavim ovako
//____________________________STOCK_____________________________________//
stock sendICMessage(Float:dist, playerid, message[]) // By SA:MP team, edited by Joey_
{
    new
pName[MAX_PLAYER_NAME+1],
finalMsg[256+1];

if (!strlen(message)) return;

new
Float:fPlayerX, Float:fPlayerY, Float:fPlayerZ,
Float:fPlayerToPlayerDist,
Float:fNormDistance,
ColorScale,
ColorValue;

GetPlayerName(playerid, pName, sizeof(pName));

format(finalMsg, sizeof(finalMsg), "%s: %s", pName, message);

SendClientMessage(playerid, 0xD0D0D0FF, finalMsg);

GetPlayerPos(playerid, fPlayerX, fPlayerY, fPlayerZ);

for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && (i != playerid) && IsPlayerStreamedIn(playerid, i))
{
fPlayerToPlayerDist = GetPlayerDistanceFromPoint(i, fPlayerX, fPlayerY, fPlayerZ);

if (fPlayerToPlayerDist < dist)
{
fNormDistance = 1.0 - (fPlayerToPlayerDist / dist);

if(fNormDistance > 0.75) ColorScale = 220;
else ColorScale = floatround(96.0 + (128.0 * fNormDistance));

ColorValue = 0x000000FF | ColorScale << 24 | ColorScale << 16 | ColorScale << 8;
SendClientMessage(i, ColorValue, finalMsg);
}
}
}
}
- na kraj skripte,kao sto si reko,a erori su sljedeci.
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1179) : warning 203: symbol is never used: "fPlayerToPlayerDist"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1179) : warning 203: symbol is never used: "fPlayerX"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1179) : warning 203: symbol is never used: "fPlayerY"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1179) : warning 203: symbol is never used: "fPlayerZ"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1179) : warning 203: symbol is never used: "finalMsg"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1179) : warning 203: symbol is never used: "pName"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1160) : error 010: invalid function or declaration
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1162) : error 010: invalid function or declaration
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1166) : error 010: invalid function or declaration
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1170) : error 010: invalid function or declaration
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1171) : error 010: invalid function or declaration
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1173) : error 010: invalid function or declaration
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1179) : warning 203: symbol is never used: "ColorScale"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1179) : warning 203: symbol is never used: "ColorValue"

To su erori kada stavim stock,eto objasnio sam ti sve,ako ti tako nije jasno,poslat cu ti ako treba scriptu celi na PM :S
poslusaj me kad ti kazem  :)
Ma brt probo sam i od Looda stavit,erora ima,a i fatal erora ima xd,poslo sam celu scriptu Joeyu , pa da vidi čoek u cem je problem.Ako nadje problem,bit cu mu zahvalan xd
NEW NEW NEW

Team Fortress od sada i na SA:MP-u!!!
Dodite i zabavite se!

IP: 62.210.122.191:7789

Problem riješen. Lock.

Last nick: Paradox