SA-MP Forums Archive
[Ajuda] Skin ORG - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Skin ORG (/showthread.php?tid=644536)



Skin ORG - SnowBorn - 09.11.2017

PHP код:
if(strcmp(cmd"/SkinORG"true) == 0) {
    {
    if(
PlayerInfo[playerid][pURSS] == 1)
    
SendClientMessage(playeridRoxo,"Vocк pegou a skin da sua Organizaзao");
    
SetPlayerSkin(plid,209);
    
dini_IntSet(file2"SkinORG"209);
    return 
1;
    } 
Min ajudem por favor fiz esse comando mais da esses erros.

Код HTML:
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(2732) : error 017: undefined symbol "GivePlayerGrana"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(2846) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(2922) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(2960) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(2979) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(2981) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(2986) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(2991) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(2996) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3001) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3150) : error 004: function "escolhe" is not implemented
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3162) : error 004: function "laser" is not implemented
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3163) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3166) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3186) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3227) : error 004: function "cadeia" is not implemented
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3228) : error 004: function "cadeia10min" is not implemented
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3278) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3290) : error 017: undefined symbol "PlayerName"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3412) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3647) : error 017: undefined symbol "strtok"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3648) : error 017: undefined symbol "strtok"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3649) : error 017: undefined symbol "strtok"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3650) : error 017: undefined symbol "strtok"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3651) : error 017: undefined symbol "strtok"
C:\Users\Helder.Aguiar\Documents\SAMP03\gamemodes\NRV.pwn(3652) : error 017: undefined symbol "strtok"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
E Tera como adc so pra poder usar um comandoo num checkpoint? ;-;


Re: Skin ORG - C4rtm4n - 09.11.2017

Cara olhe as variaveis.. o erro esta nas variaveis que o erro mostra e n no seu cmd.


Re: Skin ORG - Gguiz - 09.11.2017

Vocк poderia comeзar a utilizar zcmd, veja como o seu comando fica bem mais simples:
PHP код:
CMD:skinorg(playerid//Vocк colocou uma "{" desnecessбria.
{
    if(
PlayerInfo[playerid][pURSS] == 1)
    
SendClientMessage(playeridRoxo,"Vocк pegou a skin da sua Organizaзao");
    
SetPlayerSkin(plid,209);
    
dini_IntSet(file2"SkinORG"209);
    return 
1;

Estб sem os erros.


Re: Skin ORG - tGod - 09.11.2017

Vamos supor que vocк criou um enumerador/variбvel com a funзгo para armazenar o skin do jogador.
Entгo vamos aos exemplos.
Pelo menos procure entender o que estб escrito.
PHP код:
new SAVE_SKIN[MAX_PLAYERS];
public 
OnPlayerConnect(playerid)
{
    new 
str[38], nome[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnomesizeof(nome));
    
format(strsizeof(str), "Skin's/%s.ini"nome);
    if(!
fexist(str))
    {
        
DOF2::CreateFile(str);
        
DOF2::SetInt(str"Skin"SAVE_SKIN[playerid]);
    }
    else
        
SAVE_SKIN[playerid] = DOF2::GetInt(str"Skin");
    
SetPlayerSkin(playeridSAVE_SKIN[playerid]);
    return 
true;
}
CMD:skinorg(playerid)
{
    
SAVE_SKIN[playerid] = SetPlayerSkin(playerid209);
    
SendClientMessage(playerid, -1"Sua skin serб essa sempre que retonar ao servidor.");
    return 
true;




Re: Skin ORG - SnowBorn - 09.11.2017

Nao uso ZCMD. Caso isso vo masй desistir de fazer esse comando.


Re: Skin ORG - C4rtm4n - 09.11.2017

Quote:
Originally Posted by SnowBorn
Посмотреть сообщение
Nao uso ZCMD. Caso isso vo masй desistir de fazer esse comando.
Deveria..


Re: Skin ORG - Marllun - 09.11.2017

Mesmo o C4rtm4n sendo um pouco arrogante ele estб certo zcmd й muito mais fбcil e rapido


Re: Skin ORG - C4rtm4n - 09.11.2017

Quote:
Originally Posted by Marllun
Посмотреть сообщение
Mesmo o C4rtm4n sendo um pouco arrogante ele estб certo zcmd й muito mais fбcil e rapido
Tem diferenзa

Arrogante - https://www.significados.com.br/arrogante/
Sinceridade - https://www.significados.com.br/sinceridade/

Sou sincero ele deveria usar um desses YCMD,ZCMD,IZCMD ou pawn.cmd.


Re: Skin ORG - Gguiz - 09.11.2017

Quote:
Originally Posted by SnowBorn
Посмотреть сообщение
Nao uso ZCMD. Caso isso vo masй desistir de fazer esse comando.
Nгo seja por isso.

PHP код:
if(strcmp(cmd"/SkinORG"true) == 0) {  //Vocк colocou uma "{" desnecessбria.
 
    
if(PlayerInfo[playerid][pURSS] == 1
    
SendClientMessage(playeridRoxo,"Vocк pegou a skin da sua Organizaзao"); 
    
SetPlayerSkin(plid,209); 
    
dini_IntSet(file2"SkinORG"209); 
    return 
1

Para ver se o jogador estб no ChekPoint ou nгo, vocк irб criar uma variбvel do tipo booleano e checar se o player estб ou nгo dentro do ChekPoint.

Estude: https://sampforum.blast.hk/showthread.php?tid=292185


Re: Skin ORG - Don_Speed - 09.11.2017

PHP код:
    if(strcmp(cmd"/SkinORG"true) == 0)
    {
         if(
PlayerInfo[playerid][pURSS] == 1)
         {
             
SendClientMessage(playerid, -1,"Vocк pegou a skin da sua Organizaзao");
             
SetPlayerSkin(playerid,209);/*SetPlayerSkin(plid,209);*/

             
dini_IntSet(file2"SkinORG"209);/*Tem quem definir o caminho se nгo dara erro(Definir o file2)*/
         
}
         return 
1;
    }