sscanf??
#1

Hello..

this is my code:

pawn Код:
new org[128];
    if(orgID>0) { org = orgStats[orgID][fName]; }
    else { org = "None"; }
   
    printf("Org Name: %s, %s",  orgStats[orgID][fName], org);
When i use the org variable it just shows BLANK space.. and it cuts off the rest of the string..

the org Index is 128 long ,because thats how long fName is (temporarily..) when i use printf, the orgStats[orgID][fName] it works perfect, the org blanks completely..

Any ideas?
Reply
#2

With the new sscanf, u = players and bots, but yeah, still it would get the ID of the name entered.
Reply
#3

new question
Reply
#4

You must either format (not recommended) or use strmid to insert the name into org.

pawn Код:
new org[128];
if(orgID>0) { strmid(org, orgStats[orgID][fName], 0, 255); }
else { strmid(org, "None", 0, 255); }
printf("Org Name: %s, %s",  orgStats[orgID][fName], org);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)