[Pomoc]Errori

Započeo FireMan, Jun 28, 2011, 12:41:10 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Ravens RP
Detaljan opis problema:Pa napravio sam komandu PM i dodju mi ova 2 Errora
Dio skripte:Evo komandeif(strcmp(cmd, "/pm", true) == 0 || strcmp(cmd, "/pm", true) == 0) // By CuervO_NegrO
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pTester] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
{
        if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet!");
            return 1;
        }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "Koristi: /pm [ID/Dio Imena] [text]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {

GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
new h,mi,s;
      new y,m,d;
gettime(h,mi,s);
getdate(y,m,d);
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GREY, "Koristi: /pm [ID/Dio Imena] [text]");
return 1;
}
if(PlayerInfo[playerid][pAdmin]
    {
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "*Admin %s: %s", sendername, result);
SendClientMessage(playerid, COLOR_RED, "*PM Poslan %s: %s", giveplayer, result);
}
else if(PlayerInfo[playerid][pTester]
{
SendClientMessage(giveplayerid, COLOR_GROVE, "*GameMaster %s: %s", sendername, result);
SendClientMessage(playerid, COLOR_RED, "*PM Poslan %s: %s", giveplayer, result);
}
return 1;
}
}
else
{
format(string, sizeof(string), "* %d nije online.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
}

Errori:C:\Users\Sa-Mp\Desktop\Stefan's House System v1.1\plugins\gamemodes\AaAa.pwn(43625) : error 001: expected token: ")", but found "{"
C:\Users\Sa-Mp\Desktop\Stefan's House System v1.1\plugins\gamemodes\AaAa.pwn(43630) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Neke slike/video za lakse dobivanje pomoci(neobavezno):

if(PlayerInfo[playerid][pAdmin]  ------> if(PlayerInfo[playerid][pAdmin] )

i

if(PlayerInfo[playerid][pTester] -------> if(PlayerInfo[playerid][pTester])   

Aaa hvala sto si me sjetio,radio sam nabrzaka nisam ni primjetio!!!!!!!!

Moze Lokot?
Poslednja Izmena: Jun 28, 2011, 12:52:05 POSLE PODNE od FireMan

Moze, sledeci put pogledaj malo kodu a ne odma na Balkan Samp pa nek se oni muce...