24.11.2017, 14:48
Quote:
Is that you were looking for?
Код:
new startpos = strfind("@Kalcor#2006","@"); if(startpos==-1) SendClientMessage(playerid,-1,"@ not found"); new endpos = strfind("@Kalcor#2006","#"); if(endpos==-1) SendClientMessage(playerid,-1,"# not found"); new string[64]; new discriminator[16]; strmid(string,"@Kalcor#2006",startpos,endpos); strmid(discriminator,"@Kalcor#2006",endpos,strlen("@Kalcor#2006")); |
your code now provides @Kalcor and #2006
Quote:
Thanks @Sys for your help
This one is great but thats not what i mean 60% it spllits those symbols and then adds then in the same variable (i need each one on an variable as @poll97 did using strmid) but anyway thanks alot sir |
PHP код:
new name[]="@Kalcor#2006",updated_name[10],discriminator[10];
sscanf(name,"P<@#>{s[10]}s[10]s[10]",updated_name,discriminator);