Jump to content

Prikaz /opravauto


kudla188

Recommended Posts

moje hodnotenie je:

pre novacika: ak je to tvoj prvy vytvor tak 5/10, ak ne prvy ale zacinas v pawne: 1/10 (za snahu)

pre pokrocileho: -1/10 (to -1 je zaporne cislo, ne pomlcka)

 

toto ti napawnim za 2,5 minuty kamo :d to si tu rovno mohol dat aj PWN, predpokladam ze tam jedne je prikaz a ReapirVehicle(GetPlayerVehicleID(playerid)); a to je vsetko, ci sa mylim? (sry za to hodnotenie ale kazdy ma na to vlastny nazor ;) )

Link to comment
Share on other sites

Díky tohle je moje první pawno máte pravdu!!!

 

-- sob 21. kvě 2011 7:34:35 --

 

je to omezeni casem ? treba ze to jde pouzit jen kazde 2 minuty?

No podle toho jestli mas rze nebo jaky gamemod!!

 

-- sob 21. kvě 2011 7:36:37 --

 

Každý nějak začínal, ale todle je opravdu extrém

 

7/10 (netestoval jsem) - příště dej aspoň nějaký funkce navíc, jako třeba flip ;)

 

Jojo to mě napadlo ale zatím sem neměl čas to udělat!!

Link to comment
Share on other sites

je to omezeni casem ? treba ze to jde pouzit jen kazde 2 minuty?

No podle toho jestli mas rze nebo jaky gamemod!!

 

Nezáleží na GM ale na FS, musíš tam mít Timer, na RZE je to příkaz normální

Link to comment
Share on other sites

je to omezeni casem ? treba ze to jde pouzit jen kazde 2 minuty?

No podle toho jestli mas rze nebo jaky gamemod!!

 

Nezáleží na GM ale na FS, musíš tam mít Timer, na RZE je to příkaz normální

tak sem to mislel vis?

Link to comment
Share on other sites

moje hodnotenie je:

pre novacika: ak je to tvoj prvy vytvor tak 5/10, ak ne prvy ale zacinas v pawne: 1/10 (za snahu)

pre pokrocileho: -1/10 (to -1 je zaporne cislo, ne pomlcka)

 

toto ti napawnim za 2,5 minuty kamo :d to si tu rovno mohol dat aj PWN, predpokladam ze tam jedne je prikaz a ReapirVehicle(GetPlayerVehicleID(playerid)); a to je vsetko, ci sa mylim? (sry za to hodnotenie ale kazdy ma na to vlastny nazor ;) )

 

lol za 2,5 minuty? TAK TO NEJSI MOC dobry pawner

Link to comment
Share on other sites

moje hodnotenie je:

pre novacika: ak je to tvoj prvy vytvor tak 5/10, ak ne prvy ale zacinas v pawne: 1/10 (za snahu)

pre pokrocileho: -1/10 (to -1 je zaporne cislo, ne pomlcka)

 

toto ti napawnim za 2,5 minuty kamo :d to si tu rovno mohol dat aj PWN, predpokladam ze tam jedne je prikaz a ReapirVehicle(GetPlayerVehicleID(playerid)); a to je vsetko, ci sa mylim? (sry za to hodnotenie ale kazdy ma na to vlastny nazor ;) )

 

lol za 2,5 minuty? TAK TO NEJSI MOC dobry pawner

 

:d Ty se radši moc neozívej kopíráku ..

Link to comment
Share on other sites

Hale opravite mi pls cod?? jestli ano tak tady je:

 

 

#include

#include "../include/gl_common.inc"

 

#define ADMINFS_MESSAGE_COLOR 0xFF444499

#define PM_INCOMING_COLOR 0xFFFF22AA

#define PM_OUTGOING_COLOR 0xFFCC2299

#define PM_CHATCOLOR 0xFFFF00

 

//------------------------------------------------

 

public OnFilterScriptInit()

{

print("\n--PM Mode Nacteno!\n");

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,PM_CHATCOLOR,"[!]Použí /pm (id) (message)");

return 1;

}

 

new id = strval(tmp);

gMessage = strrest(cmdtext,idx);

 

if(!strlen(gMessage)) {

SendClientMessage(playerid,PM_CHATCOLOR,"[!]Použí /pm (id) (message)");

return 1;

}

 

if(!IsPlayerConnected(id)) {

SendClientMessage(playerid,PM_CHATCOLOR,"[!]Špatně zadané ID hráče!!");

return 1;

}

 

if(playerid != id) {

GetPlayerName(id,iName,sizeof(iName));

GetPlayerName(playerid,pName,sizeof(pName));

format(Message,sizeof(Message),">> %s(%d): %s",iName,id,gMessage);

SendClientMessage(playerid,PM_OUTGOING_COLOR,Message);

format(Message,sizeof(Message),"** %s(%d): %s",pName,playerid,gMessage);

SendClientMessage(id,PM_INCOMING_COLOR,Message);

PlayerPlaySound(id,1085,0.0,0.0,0.0);

 

printf("PM od: %s, %s",Playerid,Message);

 

}

else {

SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"Nemůžeš poslat pm sobě!!");

}

return 1;

}

 

a erory co to dava:

 

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(30) : error 017: undefined symbol "strtok"

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(30) : error 033: array must be indexed (variable "cmd")

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(34) : error 017: undefined symbol "strtok"

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(34) : error 033: array must be indexed (variable "tmp")

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(42) : error 017: undefined symbol "strrest"

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(42) : error 033: array must be indexed (variable "gMessage")

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(63) : error 017: undefined symbol "Playerid"

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(72) : error 030: compound statement not closed at the end of file (started at line 22)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

8 Errors.

Link to comment
Share on other sites

 

#include

#include "../include/gl_common.inc"

 

#define ADMINFS_MESSAGE_COLOR 0xFF444499

#define PM_INCOMING_COLOR 0xFFFF22AA

#define PM_OUTGOING_COLOR 0xFFCC2299

#define PM_CHATCOLOR 0xFFFF00

 

strtok(const string[], &index)// nemel si stock strtok

{

new length = strlen(string);

while ((index < length) && (string[index] <= ' '))

{

index++;

}

 

new offset = index;

new result[20];

while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))

{

result[index - offset] = string[index];

index++;

}

result[index - offset] = EOS;

return result;

}

//------------------------------------------------

 

public OnFilterScriptInit()

{

print("\n--PM Mode Nacteno!\n");

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,PM_CHATCOLOR,"[!]Použí /pm (id) (message)");

return 1;

}

 

new id = strval(tmp);

gMessage = strrest(cmdtext,idx);

 

if(!strlen(gMessage)) {

SendClientMessage(playerid,PM_CHATCOLOR,"[!]Použí /pm (id) (message)");

return 1;

}

 

if(!IsPlayerConnected(id)) {

SendClientMessage(playerid,PM_CHATCOLOR,"[!]Špatně zadané ID hráče!!");

return 1;

}

 

if(playerid != id) {

GetPlayerName(id,iName,sizeof(iName));

GetPlayerName(playerid,pName,sizeof(pName));

format(Message,sizeof(Message),">> %s(%d): %s",iName,id,gMessage);

SendClientMessage(playerid,PM_OUTGOING_COLOR,Message);

format(Message,sizeof(Message),"** %s(%d): %s",pName,playerid,gMessage);

SendClientMessage(id,PM_INCOMING_COLOR,Message);

PlayerPlaySound(id,1085,0.0,0.0,0.0);

 

printf("PM od: %s, %s",playerid,Message);// tady si mel velky P u playerid

 

}

else {

SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"Nemůžeš poslat pm sobě!!");

}

return 1;

}

return 0;//chybel konec publiku

}

 

Link to comment
Share on other sites

Hale opravite mi pls cod?? jestli ano tak tady je:

 

 

#include

#include "../include/gl_common.inc"

 

#define ADMINFS_MESSAGE_COLOR 0xFF444499

#define PM_INCOMING_COLOR 0xFFFF22AA

#define PM_OUTGOING_COLOR 0xFFCC2299

#define PM_CHATCOLOR 0xFFFF00

 

//------------------------------------------------

 

public OnFilterScriptInit()

{

print("\n--PM Mode Nacteno!\n");

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,PM_CHATCOLOR,"[!]Použí /pm (id) (message)");

return 1;

}

 

new id = strval(tmp);

gMessage = strrest(cmdtext,idx);

 

if(!strlen(gMessage)) {

SendClientMessage(playerid,PM_CHATCOLOR,"[!]Použí /pm (id) (message)");

return 1;

}

 

if(!IsPlayerConnected(id)) {

SendClientMessage(playerid,PM_CHATCOLOR,"[!]Špatně zadané ID hráče!!");

return 1;

}

 

if(playerid != id) {

GetPlayerName(id,iName,sizeof(iName));

GetPlayerName(playerid,pName,sizeof(pName));

format(Message,sizeof(Message),">> %s(%d): %s",iName,id,gMessage);

SendClientMessage(playerid,PM_OUTGOING_COLOR,Message);

format(Message,sizeof(Message),"** %s(%d): %s",pName,playerid,gMessage);

SendClientMessage(id,PM_INCOMING_COLOR,Message);

PlayerPlaySound(id,1085,0.0,0.0,0.0);

 

printf("PM od: %s, %s",Playerid,Message);

 

}

else {

SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"Nemůžeš poslat pm sobě!!");

}

return 1;

}

 

a erory co to dava:

 

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(30) : error 017: undefined symbol "strtok"

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(30) : error 033: array must be indexed (variable "cmd")

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(34) : error 017: undefined symbol "strtok"

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(34) : error 033: array must be indexed (variable "tmp")

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(42) : error 017: undefined symbol "strrest"

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(42) : error 033: array must be indexed (variable "gMessage")

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(63) : error 017: undefined symbol "Playerid"

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(72) : error 030: compound statement not closed at the end of file (started at line 22)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

8 Errors.

 

Jinak vodkud si to skopcil? :d

Link to comment
Share on other sites

Hale opravite mi pls cod?? jestli ano tak tady je:

 

 

#include

#include "../include/gl_common.inc"

 

#define ADMINFS_MESSAGE_COLOR 0xFF444499

#define PM_INCOMING_COLOR 0xFFFF22AA

#define PM_OUTGOING_COLOR 0xFFCC2299

#define PM_CHATCOLOR 0xFFFF00

 

//------------------------------------------------

 

public OnFilterScriptInit()

{

print("\n--PM Mode Nacteno!\n");

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,PM_CHATCOLOR,"[!]Použí /pm (id) (message)");

return 1;

}

 

new id = strval(tmp);

gMessage = strrest(cmdtext,idx);

 

if(!strlen(gMessage)) {

SendClientMessage(playerid,PM_CHATCOLOR,"[!]Použí /pm (id) (message)");

return 1;

}

 

if(!IsPlayerConnected(id)) {

SendClientMessage(playerid,PM_CHATCOLOR,"[!]Špatně zadané ID hráče!!");

return 1;

}

 

if(playerid != id) {

GetPlayerName(id,iName,sizeof(iName));

GetPlayerName(playerid,pName,sizeof(pName));

format(Message,sizeof(Message),">> %s(%d): %s",iName,id,gMessage);

SendClientMessage(playerid,PM_OUTGOING_COLOR,Message);

format(Message,sizeof(Message),"** %s(%d): %s",pName,playerid,gMessage);

SendClientMessage(id,PM_INCOMING_COLOR,Message);

PlayerPlaySound(id,1085,0.0,0.0,0.0);

 

printf("PM od: %s, %s",Playerid,Message);

 

}

else {

SendClientMessage(playerid,ADMINFS_MESSAGE_COLOR,"Nemůžeš poslat pm sobě!!");

}

return 1;

}

 

a erory co to dava:

 

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(30) : error 017: undefined symbol "strtok"

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(30) : error 033: array must be indexed (variable "cmd")

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(34) : error 017: undefined symbol "strtok"

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(34) : error 033: array must be indexed (variable "tmp")

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(42) : error 017: undefined symbol "strrest"

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(42) : error 033: array must be indexed (variable "gMessage")

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(63) : error 017: undefined symbol "Playerid"

C:\Documents and Settings\Kuba\Plocha\Czech Life v1.0\PMmsg.pwn(72) : error 030: compound statement not closed at the end of file (started at line 22)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

8 Errors.

 

Jinak vodkud si to skopcil? :d

Z nikad jen sem to upravil xD!!!! (skopcil sem to ze C:\Documents and Settings\Kuba\Plocha\pawno\prdel\deb*l.amx

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...