[AJUDA] Como faзo para mostrar o nivel de procurado
#1

gente como faзo para mostrar nivel de procurado = no single player akelas estrelas no canto
Reply
#2

SetPlayerWanted(playerid, level de procurado);
Reply
#3

mas isso vai mostrar do lado da tela nakelas estrelas ?
Reply
#4

n deu certo n

aki ja tem /su ja da nivel de procurado mas keria ke aparecece para a pessoa ke level ela ta de procurado = no single player
Reply
#5

cara depende do lvl... pera ae, vo faze aq
Reply
#6

Cara, para d fazer double post po. Edit e espera que alguem vem t ajudar po.
Reply
#7

Код:
 #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1//TOPO DO GM
Код:
 dcmd_setwanted(playerid,params[]) {
	if(PlayerInfo[playerid][Level] >= 3) {
	    new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
	    if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, "USAGE: /setwanted [playerid] [level]");
		new player1 = strval(tmp), wanted = strval(tmp2), string[128];
		if(wanted > 6) return SendClientMessage(playerid, red, "ERROR: Invaild wanted level");
		if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
			CMDMessageToAdmins(playerid,"SETWANTED");
			format(string, sizeof(string), "You have set \"%s's\" wanted level to '%d", pName(player1), wanted); SendClientMessage(playerid,blue,string);
			if(player1 != playerid) { format(string,sizeof(string),"Administrator \"%s\" has set your wanted level to '%d'", pName(playerid), wanted); SendClientMessage(player1,blue,string); }
   			return SetPlayerWantedLevel(player1, wanted);
	    } else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
	} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command"); 
} // FINAL DO GM
Codigo : /setwanted ID level de procurado... // Codigo copiado do script ladmin4v2
Reply
#8

Cara n deu n deu esses erros tentei arumar mas n consegui

C:\Users\Usuario\Desktop\Servidor De SAMP\Servidor De SAMP By Fred\pawno\include\P-STREAMER\PSO\1.0#PSO_LIB\#PSO_ESTRUTURA\PSO_F.FFR( 17) : warning 201: redefinition of constant/macro (symbol "SetPlayerPos")
C:\Users\Usuario\Desktop\BMG.pwn(31079) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Usuario\Desktop\BMG.pwn(31096) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Usuario\Desktop\BMG.pwn(31114) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Usuario\Desktop\BMG.pwn(50440) : warning 203: symbol is never used: "dcmd_setwanted"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 11524 bytes
Code size: 1961472 bytes
Data size: 12434028 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:14423408 bytes

5 Warnings.


1 Warning n tem nada a ver com isso e um include ke eu botei
Reply
#9

Olha o doube post Fred_Marley!
Reply
#10

ok foi mal e ke tem vez ke eu esqueзo
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)