[pomoc]Pomoc oko komande

Započeo makelele, Septembar 26, 2010, 19:15:14 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

makelele

vako izbacujemi gresku u ovom plavom sto sam obiljezio a neznam sta treba staviti tu???

   if(strcmp(cmd, "/makemaster", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /makemaster [ID/Ime] [level(1-4)]");
            return 1;
         }
         new para1;
         new level;
         para1 = ReturnUser(tmp);
         tmp = strtok(cmdtext, idx);
         level = strval(tmp);
         if(PlayerInfo[playerid][pAdmin] >= 1337 || PlayerInfo[playerid][pGameMaster] >= 4)
         {
             if(IsPlayerConnected(para1))
             {GetPlayerArmour(GetPlayerArmour(GetPlayerArmour()))
                 if(para1 != INVALID_PLAYER_ID)
                 {
                  GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  PlayerInfo[para1][pGameMaster] = level;
                  printf("%s stavio %s za game master level %d .", sendername, giveplayer, level);
                  format(string, sizeof(string), "   Sada ste Game Master Level %d od Admina / Game Mastera %s", level, sendername);
                  SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                  format(string, sizeof(string), "   Stavli ste %s za Game Master Level %d .", giveplayer,level);
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
               }
            }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "   Niste autorizirani da koristite ovu komandu!");
         }
      }
      return 1;
   }

error daj da vidim koji (i imas me na FB sto postas ovde dzabe xD)

if(strcmp(cmd, "/makemaster", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /makemaster [ID/Ime] [level(1-1338)]");
				return 1;
			}
			new para1;
			new level;
			para1 = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			level = strval(tmp);
			if(PlayerInfo[playerid][pAdmin] == 1338)
			{
			    if(IsPlayerConnected(para1))
			    {
			        if(para1 != INVALID_PLAYER_ID)
			        {
						GetPlayerName(para1, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						PlayerInfo[para1][pGameMaster] = level;
						printf("%s stavio %s za game master level %d .", sendername, giveplayer, level);
						format(string, sizeof(string), "   Sada ste Game Master Level %d od Admina / Game Mastera %s", level, sendername);
						SendClientMessage(para1, COLOR_LIGHTBLUE, string);
						format(string, sizeof(string), "   Stavli ste %s za Game Master Level %d .", giveplayer,level);
						SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   Niste autorizirani da koristite ovu komandu!");
			}
		}
		return 1;
	}


eto ovo bi ti trebalo radit...
Poslednja Izmena: Septembar 26, 2010, 19:20:08 POSLE PODNE od [Utopia]Owner

makelele

Ma ima boljih od tebe :D,de salim se ajd sacu ti poslati


makelele

Ovde samo admin moze dati Gamemastera jel tako??? Ok moze i ovako
ali izbacuje 2 warninga u prvom redu
Poslednja Izmena: Septembar 26, 2010, 19:31:19 POSLE PODNE od [Boris]