AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Argument type mismatch, short code (https://forums.alliedmods.net/showthread.php?t=285561)

sinisuba 07-24-2016 14:55

Argument type mismatch, short code
 
Supposed to execute amx_freeze @tt 1 after 30s.
Error while compiling (that line): Argument type mismatch (argument 2)

Code:

set_task(30.0, server_cmd("amx_freeze @tt 1"))

ironskillz1 07-24-2016 14:58

Re: Argument type mismatch, short code
 
Code:

set_task(30.0, "freeze")

public freeze()
      server_cmd("amx_freeze @tt 1")


edit: wrong subforum btw.

sinisuba 07-24-2016 15:03

Re: Argument type mismatch, short code
 
Quote:

Originally Posted by ironskillz1 (Post 2439273)
Code:

set_task(30.0, "freeze")

public freeze()
      server_cmd("amx_freeze @tt 1")


edit: wrong subforum btw.

ty, yeah just noticed that I posted in sourcemod.


All times are GMT -4. The time now is 18:10.

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