C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43456) : error: 017: undefined symbol "SetPlayerAttachedObject" C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43456) : warning: 217: loose indentation C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43456) : warning: 217: loose indentation
if(!strcmp(cmdtext,"/escudo",true)) { if(IsACop(playerid)) { SetPlayerAttachedObject(playerid,3 ,18637, 13, 0.35, 0.0, 0.0, 0.0, 0.0, 180.0); SendClientMessage(playerid, COLOR_GREEN, "Vocк colocou escudo"); new NomedoSafado[MAX_PLAYER_NAME]; GetPlayerName(playerid, NomedoSafado, sizeof(NomedoSafado)); format(string, sizeof(string), "O Policial %s colocou o escudo de protecзгo. ", NomedoSafado); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); TogglePlayerControllable(playerid, 1); printf("%s", string); return 1; } else { SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um Policial."); } return 1; }
#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)
native SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ);
C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43457) : warning: 202: number of arguments does not match definition C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43457) : warning: 202: number of arguments does not match definition C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43457) : warning: 202: number of arguments does not match definition C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43457) : warning: 217: loose indentation C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43457) : warning: 217: loose indentation
SetPlayerAttachedObject(playerid,3 ,18637, 13, 0.35, 0.0, 0.0, 0.0, 0.0, 180.0,0.0,0.0,0.0);
#pragma align
PHP код:
|