24.12.2009, 08:19
Quote:
|
Originally Posted by lrZ^ aka LarzI
Quote:
![]() And you didn't say it didn't work for you, you just asked if it would work with NPC scripts. Since it's not working for you, it's probally not working at all. Show us the way you used it? Showing the definition doesn't help much.. |
pawn Код:
native CallRemoteFunction(const function[], const format[], {Float,_}:...);
pawn Код:
#include <a_npc>
#include <dudb>
#pragma unused ret_memcpy //It gives me "warning 203: symbol is never used: "ret_memcpy"" so I use this..
main(){}
public OnNPCModeInit(){}
public OnNPCModeExit(){}
public OnNPCConnect(myplayerid){}
public OnNPCDisconnect(reason[]){}
public OnNPCSpawn(){}
public OnClientMessage(color, text[]){}
public OnPlayerDeath(playerid){}
public OnPlayerText(playerid, text[])
{
if(strfind(text,"any jobs for me") != -1)
{
print("NPC: Someone asks for drug dealer job!");
if (CallRemoteFunction("PlayerHasJob","d",playerid))
{
print("NPC: He already has a job!");
}
else
{
CallRemoteFunction("MakeDrugDealer","d",playerid);
print("NPC: Job given!");
}
}
}
public OnPlayerStreamIn(playerid){}
public OnPlayerStreamOut(playerid){}
public OnVehicleStreamIn(vehicleid){}
public OnVehicleStreamOut(vehicleid){}


