[AJUDA] Muito simples
#1

Bom, ainda sou MUITO iniciante nisso e gostaria de estar aprendendo a scriptar, bom tentei criar um script hj mas deu uma sйrie de erros, devo ter errado nas chaves e nas funзхes de callbacks, se alguem puder manutenciar ele, eu agradeзo, e acredito que vocкs entendam a minha itenзгo ao fazer esse FS.

CУDIGO PWN

Quote:

#include <a_samp>

#define FILTERSCRIPT

public OnPlayerCommandText(playerid, cmdtext[])

{
if (strcmp)cmd, "/capacete1", true) == 0)
SetPlayerAttachedObject(playerid, 1, 18936, 2, 0.105, 0.02, 0, 0, 0, 0);

}

{
if (strcmp)cmd, "/capacete2", true) == 0)
SetPlayerAttachedObject(playerid, 1, 18937, 2, 0.105, 0.02, 0, 0, 0, 0);

}

{
if (strcmp)cmd, "/capacete3", true) == 0)
SetPlayerAttachedObject(playerid, 1, 18938, 2, 0.105, 0.02, 0, 0, 0, 0);

}
return 1;
#endif

ERROS CONHECIDOS

Quote:

C:\Users\User4\Desktop\roupa.pwn(9) : error 076: syntax error in the expression, or invalid function call
C:\Users\User4\Desktop\roupa.pwn(9) : error 017: undefined symbol "cmd"
C:\Users\User4\Desktop\roupa.pwn(9) : warning 215: expression has no effect
C:\Users\User4\Desktop\roupa.pwn(9) : warning 215: expression has no effect
C:\Users\User4\Desktop\roupa.pwn(9) : error 001: expected token: ";", but found ")"
C:\Users\User4\Desktop\roupa.pwn(9) : fatal error 107: too many error messages on one line

Reply
#2

tente:
pawn Код:
#include <a_samp>

#define FILTERSCRIPT

public OnPlayerCommandText(playerid, cmdtext[])
{
   if(strcmp(cmdtext, "/capacete1", true))
   {
      SetPlayerAttachedObject(playerid, 1, 18936, 2, 0.105, 0.02, 0, 0, 0, 0);
   }
   if(strcmp(cmdtext, "/capacete2", true))
   {
      SetPlayerAttachedObject(playerid, 1, 18937, 2, 0.105, 0.02, 0, 0, 0, 0);
   }
   if(strcmp(cmdtext, "/capacete3", true))
   {
     SetPlayerAttachedObject(playerid, 1, 18938, 2, 0.105, 0.02, 0, 0, 0, 0);
   }
   return 1;
}
Reply
#3

obrigado por ajudar, porйm ainda constam 3 erros

Quote:

C:\Users\User4\Desktop\roupa.pwn(9) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\User4\Desktop\roupa.pwn(13) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\User4\Desktop\roupa.pwn(17) : error 017: undefined symbol "SetPlayerAttachedObject

Reply
#4

ninguem? me parecia tao simples para os scripters daqui :S
Reply
#5

Kinx


Quote:

C:\Users\User4\Desktop\roupa.pwn(9) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\User4\Desktop\roupa.pwn(13) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\User4\Desktop\roupa.pwn(17) : error 017: undefined symbol "SetPlayerAttachedObject

Mesma coisa que dizer que essas 3 codes ai, nгo existem..
ou nгo estгo definidas.. manda a linha do erro delas
Reply
#6

ta ali em cima, й o que o Aquilis postou
Reply
#7

@edit

Tenta definir isso

pawn Код:
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
Uma coisinha qual versгo estб usando ?? 0.3b ?
Reply
#8

Quote:
Originally Posted by Sampizito
Посмотреть сообщение
Kinx




Mesma coisa que dizer que essas 3 codes ai, nгo existem..
ou nгo estгo definidas.. manda a linha do erro delas
Coloque no topo do GM:

pawn Код:
#include <a_samp>
Reply
#9

isli27 continuam os mesmos erros. ainda nao ta definido o setplayerattachedobject

@Los : Ja tem isso ja, nao to fazendo GM , to fazendo um FS , :S
Reply
#10

Estб compilando com a include da versгo 0.3d ?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)