Quote:
Originally posted by nyghtGT
would this be correct ?
if (playerchats && startswith(jail player,#c) && strequals(#g,GP)) {tokenize #c;
setstring server.jailaccount,#t(3);
}
|
Nope. #t(n) starts at zero. jail is #t(0), player is #t(1), and the player name is #t(2). So:
NPC Code:
if (playerchats && startswith(jail player,#c)) {
if (strequals(#g,GP)) {
tokenize #c;
setstring server.jailaccount,#t(2);
}
}