[Pomoc] Error, skin

Započeo Tong1950Po
6. Apr. 2012. Zaključano
884
pregleda
9
postova
Hail
4
Made Man
6. Apr. 2012.
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);  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 == 7)
{
    if(JobDuty == 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);
        JobDuty = 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 = GetPlayerSkin(playerid);
        SetPlayerSkin( playerid, 50);
        JobDuty = 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):
Nikola Zero
4
Shot Caller
6. Apr. 2012.
SetPlayerSkin(playerid, skin22);


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

Stavi ovako:
SetPlayerSkin(playerid, 22);
Hail
4
Made Man
6. Apr. 2012.
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.
Nikola Zero
4
Shot Caller
6. Apr. 2012.
Tong1950Po wrote on April 6, 2012, 8:31 pm:
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
Ovo ti je nepotrebno to obrisi
Hail
4
Made Man
6. Apr. 2012.
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.
Luis
5
Godfather
6. Apr. 2012.
Stavi ovako :
else if(PlayerInfo == 7)
{
    if(JobDuty == 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 = 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 = 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;
}
Hail
4
Made Man
6. Apr. 2012.
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
Nikola Zero
4
Shot Caller
6. Apr. 2012.
Onda stavi ovako:
else if(PlayerInfo == 7)
{
    if(JobDuty == 1)
    {
                                new originalniskin = PlayerInfo;
        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 = 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 = 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;
}
Hail
4
Made Man
6. Apr. 2012.
Radi! Hvala obojici 😄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha