strtok annoying issue
#1

G'day. I'm writing a RP script - I DID start with GF, but thought "fuck it".

So I wrote a completely new one, copied over some of my edited script and wend underway.

my issue is simple... some of my commands always only affect ID 0

For instance, a player with the name of John_Smith, who is ID 9...

Using John as the identifier returns ID 0

Using ID 9 returns ID 0.

I DONT GET IT

Also - Some of my commands are fine - It just doesn't make sense.
Reply
#2

use sscanf and ycmd/zcmd
Reply
#3

Give us one of the commands that give you the Problems....

PS: Why did you not Use ZCMD/Y_CMD with SSCANF ?
Reply
#4

short answer - when I started i'd never used ZCMD, so I stuck with what I knew.
Now my GM is over 40k lines, and it lags like a bitch if enough people connect.
Really should have tbh xD
Reply
#5

So spend the time to rewrite the commands to use sscanf and zcmd.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)