Nemjó.
if(strcmp(cmd, \"/shout\", true) == 0 || strcmp(cmd, \"/s\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, \" Be kell jelentkezned !\");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= \' \'))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, \"Használat: (/s)hout [szöveg]\");
return 1;
}
format(string, sizeof(string), \"%s ordítja: %s!!\", sendername, result);
LoopingAnim(playerid,\"RIOT\",\"RIOT_shout\",4.0,1,0,0,0,0);
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
printf(\"%s\", string);
ClearAnimations(playerid);
}
return 1;
}
Nemjó.
if(strcmp(cmd, \"/shout\", true) == 0 || strcmp(cmd, \"/s\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, \" Be kell jelentkezned !\");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= \' \'))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, \"Használat: (/s)hout [szöveg]\");
return 1;
}
format(string, sizeof(string), \"%s ordítja: %s!!\", sendername, result);
LoopingAnim(playerid,\"RIOT\",\"RIOT_shout\",4.0,1,0,0,0,0);
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
printf(\"%s\", string);
ClearAnimations(playerid);
}
return 1;
}
OOOO: ................. - nem jó
C:\\Documents and Settings\\....\\GTA\\...\\gamemodes\\.....pwn(188) : error 017: undefined symbol \"gPlayerLogged\"
C:\\Documents and Settings\\.....\\GTA\\....\\gamemodes....pwn(188) : warning 215: expression has no effect
C:\\Documents and Settings\\....\\GTA\\....\\gamemodes\\....pwn(188) : error 001: expected token: \";\", but found \"]\"
C:\\Documents and Settings\\....\\GTA\\...\\gamemodes\\.....pwn(188) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\...\\GTA\\...\\gamemodes...pwn(188) : 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.
Nemjó.
if(strcmp(cmd, \"/shout\", true) == 0 || strcmp(cmd, \"/s\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, \" Be kell jelentkezned !\");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= \' \'))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, \"Használat: (/s)hout [szöveg]\");
return 1;
}
format(string, sizeof(string), \"%s ordítja: %s!!\", sendername, result);
LoopingAnim(playerid,\"RIOT\",\"RIOT_shout\",4.0,1,0,0,0,0);
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
printf(\"%s\", string);
ClearAnimations(playerid);
}
return 1;
}
OOOO: ................. - nem jó
C:\\Documents and Settings\\....\\GTA\\...\\gamemodes\\.....pwn(188) : error 017: undefined symbol \"gPlayerLogged\"
C:\\Documents and Settings\\.....\\GTA\\....\\gamemodes....pwn(188) : warning 215: expression has no effect
C:\\Documents and Settings\\....\\GTA\\....\\gamemodes\\....pwn(188) : error 001: expected token: \";\", but found \"]\"
C:\\Documents and Settings\\....\\GTA\\...\\gamemodes\\.....pwn(188) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\...\\GTA\\...\\gamemodes...pwn(188) : 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.
[/quote]
Pfff már loptad is? Istenem! Am nincs gPlayerLoggedIn változód.