Socket message (issue)
#1

Код:
	new infVersion[12],
	    infPass[64],
	    infAction[64],
	    infParams[256];
	
            sscanf(infParams,"p</>s[24]ds[24]s[32]",type,faction,name,code);
	    printf("\n %s %d %s %s",type,faction, code, name);
Код:
Printf: leader/2/Infin
Should be something like:
Код:
leader/2/InfiniTy./aj34hnbjk1
His name is: InfiniTy. and the code isn't send at all, if I move the code in the place of name, will be same thing, but instead of the code will be a blank space and the name will have same cut-off thing.
Reply
#2

PHP код:
printf("%s %d %s %s",type,factionnamecode); 
That is what u want ?
And u need to be sure that u have type[24],name[24],code[32];
Reply
#3

That printf is put just to see whats the problem, I use these on SCM(); for notifications.
Код:
new type[24],faction,name[24],code[32];
printf("%s",infParams);
sscanf(infParams,"p</>s[24]ds[24]s[32]",type,faction,name,code);
printf("%s %d %s %s",type,faction, code, name);
if(!strcmp("faction",type)) {
	foreach(new x : Player) {
		if(PlayerData[x][pGroup] == faction && PlayerData[x][pGroupRank] == 7) 
		SCM(x, HP3,"[Notificare]: "HP22"%s a creat o noua aplicatie la factiunea ta. [Cod: "HP44"%s"HP22"]",name,code);
	}
}
The result comes with no Code and 3/4 Name letters.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)