You need to use , strtok .
For ur example , if
PHP Code:
new format[512] = "12+steam_0:0:24524"
new id[20] , authid[25]
strtok(format,id,charsmax(id),authid,charsmax(authid),'+')
log_amx("Id - %s and authid - %s",id,authid)
Output
PHP Code:
Id - 12 and authid - steam_0:0:24524
If u want to trim both the divided part use strtok2 , because trimming is broken in strtok .