AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help in some issues (https://forums.alliedmods.net/showthread.php?t=156552)

Claudiu 05-08-2011 10:14

Help in some issues
 
First problem

I never understood how comes this. For example, if a user connects with a fps_max more than 101 then it will appear a message. I tried this but doesn't work:

Code:

public client_putinserver(id)
{
    new fpsmax[11];
    get_user_info(id, "fps_max", fpsmax, 10);

    if(fpsmax > 101)
    {
        client_print(id, print_chat, "Watch out because you have your fps_max more than 101.");
    }

    etc....

But it says something like undefined index or array must be indexed.

Second problem

What is the difference between

new g_Variable[33] and new bool:g_Variable[33] ? Are there any other types?


Thanks for the support.


All times are GMT -4. The time now is 04:28.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.