Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Tong1950Po poslato April 06, 2012, 22:22:20 POSLE PODNE

Naslov: [Pomoc] Error, skin
Poruka od: Tong1950Po poslato April 06, 2012, 22:22:20 POSLE PODNE
Skripta koju koristim: CLRP
Detaljan opis problema: Evo isao sam napravit kad se neko zaposli kao mehanicar kad upise /duty da dobij kanticu u ruku i kobinezon milim da dobije drugi skin ID 50
Dio skripte:  SetPlayerSkin(playerid, skin22[playerid]);  tu se javljaju errori

ERRORI  C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36835) : error 017: undefined symbol "skin22"
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36835) : warning 215: expression has no effect
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36835) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36835) : error 029: invalid expression, assumed zero
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36835) : 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.


Evo cijela skripta else if(PlayerInfo[playerid][pJob] == 7)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "INFO: {FFFFFF}Sada niste vise na duznosti i necete primati pozive vezane za posao.");
        RemovePlayerAttachedObject(playerid,0);
        SetPlayerSkin(playerid, skin22[playerid]);
        JobDuty[playerid] = 0;
        Mechanics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "INFO: {FFFFFF}Sada ste na duznosti i primacete pozive od ljudi kojima treba mehanicar.");
        SetPlayerAttachedObject( playerid, 0, 1650, 6, 0.145482, 0.035119, 0.040793, 8.881844, 276.183959, 329.795593, 1.561557, 1.177534, 1.265636 ); // petrolcanm - kanister
        skin22[playerid] = GetPlayerSkin(playerid);
        SetPlayerSkin( playerid, 50);
        JobDuty[playerid] = 1;
        Mechanics += 1;
        GetPlayerName(playerid,sendername,sizeof(sendername));
    format(string, sizeof(string), "Automehanicar %s je na duznosti | Ukoliko vam treba Mehanicarska sluzba pozovite {FFFFFF}/call 555", sendername);
    OOCNews(SVJETLOPLAVA,string);
    }
}
else
{
    SendClientMessage(playerid, COLOR_GRAD1, "Niste clan Policije/F.B.I-a");
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Naslov: Odg: [Pomoc] Error, skin
Poruka od: NeÓ§ poslato April 06, 2012, 22:28:54 POSLE PODNE
SetPlayerSkin(playerid, skin22[playerid]);

Sta ti je ovo,sta ce ti 2 playerid?  ???


Stavi ovako:

SetPlayerSkin(playerid, 22);
Naslov: Odg: [Pomoc] Error, skin
Poruka od: Tong1950Po poslato April 06, 2012, 22:31:34 POSLE PODNE
Opet isto erori!

C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36843) : error 017: undefined symbol "skin22"
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36843) : warning 215: expression has no effect
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36843) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36843) : error 029: invalid expression, assumed zero
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36843) : 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.
Naslov: Odg: [Pomoc] Error, skin
Poruka od: NeÓ§ poslato April 06, 2012, 22:34:07 POSLE PODNE
Citat: Tong1950Po poslato April 06, 2012, 22:31:34 POSLE PODNE
Opet isto erori!

C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36843) : error 017: undefined symbol "skin22"
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36843) : warning 215: expression has no effect
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36843) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36843) : error 029: invalid expression, assumed zero
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36843) : 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.



skin22[playerid] Ovo ti je nepotrebno to obrisi
Naslov: Odg: [Pomoc] Error, skin
Poruka od: Tong1950Po poslato April 06, 2012, 22:40:21 POSLE PODNE
opet isto
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36835) : error 017: undefined symbol "skin22"
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36835) : warning 215: expression has no effect
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36835) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36835) : error 029: invalid expression, assumed zero
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(36835) : 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.
Naslov: Odg: [Pomoc] Error, skin
Poruka od: [TG:RP]$--L84S--$ poslato April 06, 2012, 22:58:14 POSLE PODNE
Stavi ovako :
else if(PlayerInfo[playerid][pJob] == 7)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "INFO: {FFFFFF}Sada niste vise na duznosti i necete primati pozive vezane za posao.");
        RemovePlayerAttachedObject(playerid,0);
        SetPlayerSkin(playerid, 22);
        JobDuty[playerid] = 0;
        Mechanics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "INFO: {FFFFFF}Sada ste na duznosti i primacete pozive od ljudi kojima treba mehanicar.");
        SetPlayerAttachedObject( playerid, 0, 1650, 6, 0.145482, 0.035119, 0.040793, 8.881844, 276.183959, 329.795593, 1.561557, 1.177534, 1.265636 ); // petrolcanm - kanister
        SetPlayerSkin( playerid, 50);
        JobDuty[playerid] = 1;
        Mechanics += 1;
        GetPlayerName(playerid,sendername,sizeof(sendername));
    format(string, sizeof(string), "Automehanicar %s je na duznosti | Ukoliko vam treba Mehanicarska sluzba pozovite {FFFFFF}/call 555", sendername);
    OOCNews(SVJETLOPLAVA,string);
    }
}
else
{
    SendClientMessage(playerid, COLOR_GRAD1, "Niste clan Policije/F.B.I-a");
}
}
return 1;
}
Naslov: Odg: [Pomoc] Error, skin
Poruka od: Tong1950Po poslato April 06, 2012, 23:07:09 POSLE PODNE
Radi, ali kad opet napisem /duty m aken mi skin od mehanicara ali ne vrati mi stari skin nego dobijem neki drugi ako me razumjes
Naslov: Odg: [Pomoc] Error, skin
Poruka od: NeÓ§ poslato April 06, 2012, 23:29:40 POSLE PODNE
Onda stavi ovako:
else if(PlayerInfo[playerid][pJob] == 7)
{
    if(JobDuty[playerid] == 1)
    {
                                new originalniskin = PlayerInfo[playerid][pChar];
        SendClientMessage(playerid, COLOR_RED, "INFO: {FFFFFF}Sada niste vise na duznosti i necete primati pozive vezane za posao.");
        RemovePlayerAttachedObject(playerid,0);
        SetPlayerSkin(playerid, originalniskin);
        JobDuty[playerid] = 0;
        Mechanics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "INFO: {FFFFFF}Sada ste na duznosti i primacete pozive od ljudi kojima treba mehanicar.");
        SetPlayerAttachedObject( playerid, 0, 1650, 6, 0.145482, 0.035119, 0.040793, 8.881844, 276.183959, 329.795593, 1.561557, 1.177534, 1.265636 ); // petrolcanm - kanister
        SetPlayerSkin( playerid, 50);
        JobDuty[playerid] = 1;
        Mechanics += 1;
        GetPlayerName(playerid,sendername,sizeof(sendername));
    format(string, sizeof(string), "Automehanicar %s je na duznosti | Ukoliko vam treba Mehanicarska sluzba pozovite {FFFFFF}/call 555", sendername);
    OOCNews(SVJETLOPLAVA,string);
    }
}
else
{
    SendClientMessage(playerid, COLOR_GRAD1, "Niste clan Policije/F.B.I-a");
}
}
return 1;
}
Naslov: Odg: [Pomoc] Error, skin
Poruka od: Tong1950Po poslato April 06, 2012, 23:42:05 POSLE PODNE
Radi! Hvala obojici :D