09.07.2011, 22:58
O Erro e esse ai.
O Cуdigo do escudo e esse.
Код:
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;
}



.
.