21.12.2011, 06:19
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
ERROS CONHECIDOS
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 |
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 |