Jump to content
  • 0

Problema strcat


Question

Posted

Deci am o comanda /credits si am facut-o cu strcat si cand am facut comanda /rules tot cu strcat  apar aceaste erori [pawn]error 021: symbol already defined: "strcat"[/pawn] [pawn]error 010: invalid function or declaration[/pawn]

Cum sa fac sa mearga strcat?

tumblr_ll5sj3LUoZ1qgjpfvo1_250.gif

5 answers to this question

Recommended Posts

Posted

Cred ca ai pus comenzile inafara la OnPlayerCommandText. Comenzile trebuiesc puse sub acel callback !

Vezi sa nu fi facut ce a zis DreameR ( desi nu cred ).

Daca nu e niciuna din astea, posteaza comenzile.

Posted

Uite comanda

if (strcmp("/teles", cmdtext, true, 10) == 0)
{
new string[2024];
	    strcat(string,"\n{6EF83C}\t\t================================");
	    strcat(string,"\n{6EF83C}\t\t|\t{F81414}TeleportsCommands\t\t{6EF83C}|");
		strcat(string,"\n{6EF83C}\t\t================================");
		strcat(string,"\n\t\t{6EF83C}|\t\t{6EF83C}[{F3FF02}Places{6EF83C}]\t\t|");
		strcat(string,"\n\t\t{6EF83C}|\t\t{6EF83C}[{F3FF02}Places2{6EF83C}]\t\t|");
		strcat(string,"\n\t\t{6EF83C}|\t\t{6EF83C}[{F3FF02}VPlaces{6EF83C}]\t\t|");
	    strcat(string,"\n\t\t{6EF83C}|\t\t{6EF83C}[{F3FF02}Fun{6EF83C}]\t\t\t|");
		strcat(string,"\n\t\t{6EF83C}|\t\t{6EF83C}[{F3FF02}DM{6EF83C}]\t\t\t|");
		strcat(string,"\n\t\t{6EF83C}|\t\t{6EF83C}[{F3FF02}Jumps{6EF83C}]\t\t|");
		strcat(string,"\n\t\t{6EF83C}|\t\t{6EF83C}[{F3FF02}Races{6EF83C}]\t\t\t|");
		strcat(string,"\n\t\t{6EF83C}|\t\t{6EF83C}[{F3FF02}Tune{6EF83C}]\t\t\t|");
		strcat(string,"\n\t\t{6EF83C}|\t\t{6EF83C}[{F3FF02}Interiors{6EF83C}]\t\t|");
	    strcat(string,"\n{6EF83C}\t\t--------------------------------------------------------");
		ShowPlayerDialog(playerid,JFS_OWNA,DIALOG_STYLE_LIST,"{6EF83C}------- {F81414}Choose teleports option{6EF83C} -------",string,"Select", "Cancel");
        return 1;
    }

tumblr_ll5sj3LUoZ1qgjpfvo1_250.gif
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.