/pm Command problem

Započeo aztecaS, Jun 10, 2010, 18:48:33 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skino sam skriptu /pm ali samo .pwn i sad kad kliknem Compile ima error
Pokusao sa m ga popraviti ali nikako nisam uspio :S


#include <a_samp>
#include <gl_common>

#define COLOR_ONE 0xFF444499
#define COLOR_TWO 0xFFFF22AA
#define COLOR_THREE 0xFFCC2299
//------------------------------------------------

public OnFilterScriptInit()
{
print("Personal Command System Loaded!");

return 1;
}
//------------------------------------------------

public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new tmp[256];
new Message[256];
new gMessage[256];
new pName[MAX_PLAYER_NAME+1];
new iName[MAX_PLAYER_NAME+1];
new idx;

cmd = strtok(cmdtext, idx);

if(strcmp("/pm", cmd, true) == 0)
{
tmp = strtok(cmdtext,idx);

if(!strlen(tmp) || strlen(tmp) > 5) {
SendClientMessage(playerid,COLOR_ONE,"Correct usage: /pm [id] [message]");
return 1;
}

new id = strval(tmp);
        gMessage = strrest(cmdtext,idx);

if(!strlen(gMessage)) {
SendClientMessage(playerid,COLOR_ONE,"Correct usage: /pm [id] [message]");
return 1;
}

if(!IsPlayerConnected(id)) {
SendClientMessage(playerid,COLOR_ONE,"Server: Player ID not found, please check the ID and try again.");
return 1;
}

if(playerid != id) {
GetPlayerName(id,iName,sizeof(iName));
GetPlayerName(playerid,pName,sizeof(pName));
format(Message,sizeof(Message),"PM Sent to %s (ID: %d): %s",iName,id,gMessage);
SendClientMessage(playerid,COLOR_THREE,Message);
format(Message,sizeof(Message),"PM From %s (ID: %d): %s",pName,playerid,gMessage);
SendClientMessage(id,COLOR_TWO,Message);
PlayerPlaySound(id,1085,0.0,0.0,0.0);

printf("PM Logger: %s (ID:%s) (Name: %s)",Message, playerid, pName);

}
else {
SendClientMessage(playerid,COLOR_ONE,"Server: You cannot send a personal message to yourself!");
}
return 1;
}
return 0;
}


Error pwn(3) : fatal error 100: cannot read from file: "gl_common"

Mozel pomoc  ::)

Trebas imati file u pawnu gl_common, tamo gdje su ti ostali

EDIT: UPOZORENJE: to sam zakljucio iz erorra, nez ja skriptat  xd
Poslednja Izmena: Jun 10, 2010, 19:07:16 POSLE PODNE od Dex


Odsutan dok ne doÄ'em.


Citat: Dex poslato Jun 10, 2010, 19:06:33 POSLE PODNE
Trebas imati file u pawnu gl_common, tamo gdje su ti ostali

EDIT: UPOZORENJE: to sam zakljucio iz erorra, nez ja skriptat  xd

Ubacio sam nego opet je neki problem  ::)

Jesi otvorio pawno u kojem se nalazi taj file, ako imas vise pawnoa na kompu, zna i to biti xd


Odsutan dok ne doÄ'em.


Nije ni to ..Jbg..Nemoguca Misija  ???