[Pomoc] Error, skin

Započeo Tong1950Po, April 06, 2012, 22:22:20 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

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):
Poslednja Izmena: April 06, 2012, 22:23:00 POSLE PODNE od Tong1950Po
Trazim Skriptera! Nagrada Head Admin

SetPlayerSkin(playerid, skin22[playerid]);


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


Stavi ovako:

SetPlayerSkin(playerid, 22);
Poslednja Izmena: April 06, 2012, 22:29:32 POSLE PODNE od Zeratul

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.
Trazim Skriptera! Nagrada Head Admin

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

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.
Trazim Skriptera! Nagrada Head Admin

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;
	}

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
Trazim Skriptera! Nagrada Head Admin

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;
	}
Poslednja Izmena: April 06, 2012, 23:30:54 POSLE PODNE od Zeratul

Radi! Hvala obojici :D
Trazim Skriptera! Nagrada Head Admin