The whole thinking is wrong. You have to many variables for no reason, also u can't just create a variable named client and be an actual client. Instead of using GetClientName u can just print the name with this: %N.
ex:
PHP Code:
PrintToChatAll("%N got 1000 credits", client)
This:
PHP Code:
if (client, PrintToChat(client, correctanswer))
{
Store_SetClientCredits(client, 1000);
PrintToChatAll("%s {purple}%s {red}You got {green}%s", ChatTag, cname, creditsanswer);
}
if (PrintToChatAll(clientanswer > 5000)) /* line 45 */
{
PrintToChat(client, "%s {red}Sorry not correct", ChatTag);
}
if (PrintToChatAll(clientanswer < "5000")) /* line 49 */
{
PrintToChat(client, "%s {red}Sorry not correct", ChatTag);
}
It should be like this:
PHP Code:
if(clientanswer == 5000)
{
PrintToChat(client, "Correct")
Store_SetClientCredits(client, Store_GetClientCredits + 1000)
}
else
{
PrintToChat(client, "Wrong")
}
Anyway, there a lot of things that need to be fixed