help I have Error!
#1

i have error in this command
PHP код:
new string[256];
format(string,sizeof(string),"/help айрд чййоъ мтжшд дчщ [%s] дфчегд щдчмгъ ",cmdtext);
SendClientMessage(playerid0xFFFFFFAA,string);
return 
1;

The error :
PHP код:
 error 021symbol already defined"string" 
this made if you type other command : /afbdsfsdfg
this write : This command doesn't exist [%s] for help Press / help
Reply
#2

This is a simple proble, just change the string to string1, and change new string[256]; to new string1[256];
Reply
#3

you have already defined string
Reply
#4

new no error
but if i made /ddfgjdsfg
It gives me the command / help
Reply
#5

Quote:
Originally Posted by doreto
Посмотреть сообщение
you have already defined string
Yes its defined but the error hes having is about the define of string.
Reply
#6

now no error
but if i made /ddfgjdsfg
It gives me the command / help
I try delete the command /help and now this made me the command /teleport (this command after the command /help)
why?!
Reply
#7

u need to return i think.
Reply
#8

I have return ! :
PHP код:
new string1[256];
format(string1,sizeof(string1),"/help XX XXX XXXX XX [%s] XXXX XXX XX ",cmdtext);
SendClientMessage(playerid0xFFFFFFAA,string1);
return 
1;

Sorry for the x , its in Hebraw
Reply
#9

Quote:
Originally Posted by lonako45
Посмотреть сообщение
I have return ! :
PHP код:
new string1[256];
format(string1,sizeof(string1),"/help XX XXX XXXX XX [%s] XXXX XXX XX ",cmdtext);
SendClientMessage(playerid0xFFFFFFAA,string1);
return 
1;

Sorry for the x , its in Hebraw
help please?
Reply
#10

helpppppppppp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)