SA-MP Forums Archive
help I have Error! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help I have Error! (/showthread.php?tid=330359)



help I have Error! - lonako45 - 01.04.2012

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


Re: help I have Error! - Tom1412 - 01.04.2012

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


Re: help I have Error! - doreto - 01.04.2012

you have already defined string


Re: help I have Error! - lonako45 - 01.04.2012

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


Re: help I have Error! - Tom1412 - 01.04.2012

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


Re: help I have Error! - lonako45 - 01.04.2012

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?!


Re: help I have Error! - Randyy - 01.04.2012

u need to return i think.


Re: help I have Error! - lonako45 - 01.04.2012

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


Re: help I have Error! - lonako45 - 01.04.2012

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?


Re: help I have Error! - lonako45 - 01.04.2012

helpppppppppp