Ptrayal said:
OK, you are right. When I run the do_score command, it also calls the gen with this:
if(IS_VAMPIRE(ch))
{
sprintf(buf, " Generation: %d", ch->gen);
send_to_char(buf, user);
}
Now, when I parse it to MSDP, it get's parsed like this:
MSDPSetNumber( d, eMSDP_GEN, d->character->gen );
I don't know what or where "do_score" is. You're talking about these things as if I'm sitting there looking over your shoulder, but I'm not. In any case it seems clear to me that ch->gen and d->character->gen are not even remotely the same thing as msdp["GEN"] as they are clearly different references in different codes. Just because you want them to ultimately have the same value in them doesn't make them related in any solid way.
I'm guessing you're working with both the server and client end on this? Make sure the raw value is being sent by the server. Make sure the raw value is being received by the client. Make sure the client is doing the right thing with the raw value. If it helps, you know where the client is saying that the value is nil. So start working backwards from there.
Quote: So, I know there is a variable assigned to it because when I do my score function, I get the correct number. No, you know there is a value assigned to something else in a different piece of code.
Quote: attempt to call global 'type' (a string value)
This means that your script has overridden the type function with a string by creating a variable with the name "type" and assigning it a value. Just don't create a variable with the name "type".
The following BAD code will do the same thing:
type = "hello"
print(type(5))
|