AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Number of arg does not match definition (https://forums.alliedmods.net/showthread.php?t=21783)

Sandurr 12-10-2005 11:44

Number of arg does not match definition
 
Code:

entity_set_model(entity,"models/player/%s/%s.mdl",model,model)
ERROR GIVE IN COMPILER:

Code:

X:\HLServer\ts\addons\amxmodx\scripting\code.sma(640) : warning 202:
 number of arguments does not match definition
X:\HLServer\ts\addons\amxmodx\scripting\code.sma(640) : warning 202:
 number of arguments does not match definition

Line 640 is the line given above!

Whats wrong? model is an array of [32]

v3x 12-10-2005 11:48

Code:
new mdlstr[64]; format(mdlstr, 63, "%s/%s", model, model); entity_set_model(entity, mdlstr);


All times are GMT -4. The time now is 15:57.

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