[pomoc]lider dobi r1

Započeo MatijaCH, Mart 24, 2011, 22:47:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Cyb3er mod

Opis problema: kada nekom dam lidera taj lider dobi r 1

Dio skripte:    
if(strcmp(cmd, "/makeleader", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, CRVENA, "Komanda: /makeleader [IgracevID/DeoImena] [Broj 1-15]");
				return 1;
			}
			new para1;
			new level;
			para1 = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			level = strvalEx(tmp);
			if(level > 15 || level < 0) { SendClientMessage(playerid, SIVA, "Najmanje 1 | Najvise 15"); return 1; }
			if (PlayerInfo[playerid][Admin] >= 1337)
			{
			    if(IsPlayerConnected(para1))
			    {
			        if(para1 != INVALID_PLAYER_ID)
			        {
			            if(PlayerInfo[para1][Clan] > 0 || PlayerInfo[para1][pFMember] < 255)
			            {
			                SendClientMessage(playerid, SIVA, "[LIDER]:Taj igrac je vec u nekoj organizaciji !");
			                return 1;
			            }
						GetPlayerName(para1, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						PlayerInfo[para1][Lider] = level;
						format(string, sizeof(string), "Poprimovao si lidera Organizacije/Bande/Mafije od Admina %s", sendername);
						SendClientMessage(para1, SVETLOPLAVA, string);
						format(string, sizeof(string), "Postavili ste %s za lidera Orge/Bande/Mafije Broj:%d!", giveplayer,level);
						SendClientMessage(playerid, SVETLOPLAVA, string);
						if(level == 0) { PlayerInfo[para1][pChar] = 0; }
						else if(level == 1) { PlayerInfo[para1][pChar] = 283; PlayerInfo[para1][pTeam] = 2; } //Policija
						else if(level == 2) { PlayerInfo[para1][pChar] = 165; PlayerInfo[para1][pTeam] = 2; } //FBI
						else if(level == 3) { PlayerInfo[para1][pChar] = 102; } //Ballas
						else if(level == 4) { PlayerInfo[para1][pChar] = 274; } //Hitna Pomoc
						else if(level == 5) { PlayerInfo[para1][pChar] = 113; } //Corleones
						else if(level == 6) { PlayerInfo[para1][pChar] = 120; } //Black Dragon Triads
                        else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Gradonacelnik
                        else if(level == 8) { PlayerInfo[para1][pChar] = 271; } //Grove Street
                        else if(level == 9) { PlayerInfo[para1][pChar] = 295; } //CNN novinari
                        else if(level == 10) {PlayerInfo[para1][pChar] = 61; } //Taxi
                        else if(level == 11) {PlayerInfo[para1][pChar] = 294; } //Hitman
                        else if(level == 12) {PlayerInfo[para1][pChar] = 108; } //Crips
                        else if(level == 13) {PlayerInfo[para1][pChar] = 29; } //Street Racer
                        else if(level == 14) {PlayerInfo[para1][pChar] = 127; } //The Vincie
                        else if(level == 15) {PlayerInfo[para1][pChar] = 125; } //LCN
                        gTeam[para1] = 15;
					    PlayerInfo[para1][pTeam] = 15;
					    SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, CRVENA, "Moras biti Admin 1337");
			}
		}
		return 1;
	}


Slika ili video: //
Poslednja Izmena: Mart 24, 2011, 22:48:11 POSLE PODNE od MatijaCH
Vise ne skriptam!!!
Ako vam treba pomoc oko PC-a posaljite mi PM...pomoc cu vam ako znam !

ovo dodaj u komandu

PlayerInfo[para1][pRank] = 6;


i mislim da bi trebalo radit ako ti je prank definirano.



Posjetite nas i osjetite razliku
www.balkan-city.info



193.192.59.151:7788


Game monitor nije u 100% tocan tj uvjek pokaziva manje

Citat: EMPIRE-GAMING      Ante_Dracar aka Lopa poslato Mart 24, 2011, 23:07:04 POSLE PODNE
ovo dodaj u komandu

PlayerInfo[para1][pRank] = 6;


i mislim da bi trebalo radit ako ti je prank definirano.

C:\Users\Matija\Desktop\Tuborg RolePlay [0.3c]\gamemodes\Tuborg.pwn(36149) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



if(strcmp(cmd, "/makeleader", true) == 0)


	
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, CRVENA, "Komanda: /makeleader [IgracevID/DeoImena] [Broj 1-15]");
				return 1;
			}
			new para1;
			new level;
			para1 = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			level = strvalEx(tmp);
			if(level > 15 || level < 0) { SendClientMessage(playerid, SIVA, "Najmanje 1 | Najvise 15"); return 1; }
			if (PlayerInfo[playerid][Admin] >= 1337)
            PlayerInfo[para1][pRank] = 6;
			{
			    if(IsPlayerConnected(para1))
			    {
			        if(para1 != INVALID_PLAYER_ID)
			        {
			            if(PlayerInfo[para1][Clan] > 0 || PlayerInfo[para1][pFMember] < 255)
			            {
			                SendClientMessage(playerid, SIVA, "[LIDER]:Taj igrac je vec u nekoj organizaciji !");
			                return 1;
			            }
						GetPlayerName(para1, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						PlayerInfo[para1][Lider] = level;
						format(string, sizeof(string), "Poprimovao si lidera Organizacije/Bande/Mafije od Admina %s", sendername);
						SendClientMessage(para1, SVETLOPLAVA, string);
						format(string, sizeof(string), "Postavili ste %s za lidera Orge/Bande/Mafije Broj:%d!", giveplayer,level);
						SendClientMessage(playerid, SVETLOPLAVA, string);
						if(level == 0) { PlayerInfo[para1][pChar] = 0; }
						else if(level == 1) { PlayerInfo[para1][pChar] = 283; PlayerInfo[para1][pTeam] = 2; } //Policija
						else if(level == 2) { PlayerInfo[para1][pChar] = 165; PlayerInfo[para1][pTeam] = 2; } //FBI
						else if(level == 3) { PlayerInfo[para1][pChar] = 102; } //Ballas
						else if(level == 4) { PlayerInfo[para1][pChar] = 274; } //Hitna Pomoc
						else if(level == 5) { PlayerInfo[para1][pChar] = 113; } //Corleones
						else if(level == 6) { PlayerInfo[para1][pChar] = 120; } //Black Dragon Triads
                        else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Gradonacelnik
                        else if(level == 8) { PlayerInfo[para1][pChar] = 271; } //Grove Street
                        else if(level == 9) { PlayerInfo[para1][pChar] = 295; } //CNN novinari
                        else if(level == 10) {PlayerInfo[para1][pChar] = 61; } //Taxi
                        else if(level == 11) {PlayerInfo[para1][pChar] = 294; } //Hitman
                        else if(level == 12) {PlayerInfo[para1][pChar] = 108; } //Crips
                        else if(level == 13) {PlayerInfo[para1][pChar] = 29; } //Street Racer
                        else if(level == 14) {PlayerInfo[para1][pChar] = 127; } //The Vincie
                        else if(level == 15) {PlayerInfo[para1][pChar] = 125; } //LCN
                        gTeam[para1] = 15;
					    PlayerInfo[para1][pTeam] = 15;
					    SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, CRVENA, "Moras biti Admin 1337");
			}
		}
		return 1;
	}
Vise ne skriptam!!!
Ako vam treba pomoc oko PC-a posaljite mi PM...pomoc cu vam ako znam !