#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 |
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 |
#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;
}
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 |
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 |
#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)
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 |
#include <a_samp>